Package org.qi4j.bootstrap

Examples of org.qi4j.bootstrap.Energy4Java


public class ModuleTest
{
    public Application givenFixture1()
        throws AssemblyException
    {
        Energy4Java boot = new Energy4Java();
        return boot.newApplication( new ApplicationAssembler()
        {
            public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory )
                throws AssemblyException
            {
                return applicationFactory.newApplicationAssembly( new Assembler[][][]
View Full Code Here


    @Test
    public void createApplicationUsingApplicationAssembly()
        throws AssemblyException
    {
        Energy4Java boot = new Energy4Java();
        boot.newApplication( new ApplicationAssembler()
        {
            public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory )
                throws AssemblyException
            {
                ApplicationAssembly applicationAssembly = applicationFactory.newApplicationAssembly();
View Full Code Here

    @Test
    public void createApplicationUsingArrayOfAssemblers()
        throws AssemblyException
    {
        Energy4Java boot = new Energy4Java();
        Assembler[][][] assemblers = new Assembler[][][]
            {
                { // User Interface layer
                  {
                      new ViewAssembler()
                  }
                },
                { // Application layer
                  {
                      new DomainApplicationAssembler()
                  }
                },
                { // Domain layer
                  {
                      new DomainModelAssembler()
                  }
                },
                { // Infrastructure layer
                  {
                      new InfrastructureAssembler()
                  }
                }
            };

        boot.newApplication( new ApplicationAssemblerAdapter( assemblers )
        {
        } );
    }
View Full Code Here

    @Before
    public void setup()
        throws Exception
    {
        Energy4Java qi4j = new Energy4Java();
        application = qi4j.newApplication( this );
        module = application.findModule( LAYER_DOMAIN, MODULE_DOMAIN );
        application.activate();
        indexingDataDir = module.findService( RdfIndexingService.class ).get().dataDir();
    }
View Full Code Here

TOP

Related Classes of org.qi4j.bootstrap.Energy4Java

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.