Package org.qi4j.bootstrap

Examples of org.qi4j.bootstrap.LayerAssembly.module()


            // Create Layer
            LayerAssembly layerAssembly = applicationAssembly.layer( "Layer " + ( layer + 1 ) );
            for( int module = 0; module < assemblers[ layer ].length; module++ )
            {
                // Create Module
                ModuleAssembly moduleAssembly = layerAssembly.module( "Module " + ( module + 1 ) );
                for( Assembler assembler : assemblers[ layer ][ module ] )
                {
                    // Register Assembler
                    assembler.assemble( moduleAssembly );
                }
View Full Code Here


        throws AssemblyException
    {
        ApplicationAssembly assembly = applicationFactory.newApplicationAssembly();
        assembly.setMode( mode );
        LayerAssembly webLayer = assembly.layer( "WebLayer" );
        new PagesModule().assemble( webLayer.module( "PagesModule" ) );
        LayerAssembly domainLayer = assembly.layer( "DomainLayer" );
        new RentalModule().assemble( domainLayer.module( "RentalModule" ) );
        LayerAssembly infraLayer = assembly.layer( "InfraLayer" );
        new StorageModule().assemble( infraLayer.module( "StorageModule" ) );
View Full Code Here

        ApplicationAssembly assembly = applicationFactory.newApplicationAssembly();
        assembly.setMode( mode );
        LayerAssembly webLayer = assembly.layer( "WebLayer" );
        new PagesModule().assemble( webLayer.module( "PagesModule" ) );
        LayerAssembly domainLayer = assembly.layer( "DomainLayer" );
        new RentalModule().assemble( domainLayer.module( "RentalModule" ) );
        LayerAssembly infraLayer = assembly.layer( "InfraLayer" );
        new StorageModule().assemble( infraLayer.module( "StorageModule" ) );

        webLayer.uses( domainLayer );
        domainLayer.uses( infraLayer );
View Full Code Here

        LayerAssembly webLayer = assembly.layer( "WebLayer" );
        new PagesModule().assemble( webLayer.module( "PagesModule" ) );
        LayerAssembly domainLayer = assembly.layer( "DomainLayer" );
        new RentalModule().assemble( domainLayer.module( "RentalModule" ) );
        LayerAssembly infraLayer = assembly.layer( "InfraLayer" );
        new StorageModule().assemble( infraLayer.module( "StorageModule" ) );

        webLayer.uses( domainLayer );
        domainLayer.uses( infraLayer );
        return assembly;
    }
View Full Code Here

    @Override
    protected void defineApplication( ApplicationAssembly applicationAssembly )
        throws AssemblyException
    {
        LayerAssembly layer = applicationAssembly.layer( "Layer 1" );
        ModuleAssembly module = layer.module( "Module 1" );
        module.objects( AbstractQi4jTest.this.getClass() );
        assemble( module );
    }

    @After
View Full Code Here

        ApplicationAssembly appAss = applicationFactory.newApplicationAssembly();
        appAss.setName( "SQL Support Sample" );

        // Config
        LayerAssembly configLayer = appAss.layer( "config" );
        ModuleAssembly configModule = configLayer.module( "config" );
        {
            configModule.services( OrgJsonValueSerializationService.class ).
                taggedWith( ValueSerialization.Formats.JSON );
            configModule.services( MemoryEntityStoreService.class ).
                visibleIn( Visibility.module );
View Full Code Here

            // new PreferenceEntityStoreAssembler( Visibility.module ).assemble( configModule );
        }

        // Infra
        LayerAssembly infraLayer = appAss.layer( "infra" );
        ModuleAssembly persistenceModule = infraLayer.module( "persistence" );
        {
            persistenceModule.services( OrgJsonValueSerializationService.class ).
                taggedWith( ValueSerialization.Formats.JSON );

            // SQL DataSource Service
View Full Code Here

                assemble( persistenceModule );
        }

        // App
        LayerAssembly appLayer = appAss.layer( "app" );
        ModuleAssembly domainModule = appLayer.module( "domain" );
        {
            domainModule.entities( PretextEntity.class );
        }

        // Uses
View Full Code Here

    private LayerAssembly createInfrastructureLayer( ApplicationAssembly appAssembly )
        throws AssemblyException
    {
        LayerAssembly layerInfrastructure = appAssembly.layer( "Infrastructure" );

        ModuleAssembly moduleMail = layerInfrastructure.module( "Mail" );
        new MailServiceAssembler().assemble( moduleMail );

        ModuleAssembly modulePersistence = layerInfrastructure.module( "Persistence" );
        new PersistenceAssembler().assemble( modulePersistence );
View Full Code Here

        LayerAssembly layerInfrastructure = appAssembly.layer( "Infrastructure" );

        ModuleAssembly moduleMail = layerInfrastructure.module( "Mail" );
        new MailServiceAssembler().assemble( moduleMail );

        ModuleAssembly modulePersistence = layerInfrastructure.module( "Persistence" );
        new PersistenceAssembler().assemble( modulePersistence );

        return layerInfrastructure;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.