Package org.qi4j.library.sql.assembly

Examples of org.qi4j.library.sql.assembly.DataSourceAssembler


                    visibleIn( Visibility.module ).
                    withConfig( config, Visibility.layer ).
                    assemble( module );

                // DataSource
                new DataSourceAssembler().
                    withDataSourceServiceIdentity( "derby-datasource-service" ).
                    identifiedBy( "derby-datasource" ).
                    withCircuitBreaker().
                    assemble( module );
View Full Code Here


                    visibleIn( Visibility.module ).
                    withConfig( config, Visibility.layer ).
                    assemble( module );

                // DataSource
                new DataSourceAssembler().
                    withDataSourceServiceIdentity( "postgresql-datasource-service" ).
                    identifiedBy( "postgresql-datasource" ).
                    withCircuitBreaker().
                    assemble( module );
View Full Code Here

                visibleIn( Visibility.module ).
                withConfig( configModule, Visibility.application ).
                assemble( persistenceModule );

            // SQL EntityStore DataSource and Service
            new DataSourceAssembler().
                withDataSourceServiceIdentity( dataSourceServiceIdentity ).
                identifiedBy( "postgresql-es-datasource" ).
                visibleIn( Visibility.module ).
                withCircuitBreaker( DataSources.newDataSourceCircuitBreaker() ).assemble( persistenceModule );
            new PostgreSQLEntityStoreAssembler().
                visibleIn( Visibility.application ).
                withConfig( configModule, Visibility.application ).
                assemble( persistenceModule );

            // SQL Index/Query DataSource and Service
            new DataSourceAssembler().
                withDataSourceServiceIdentity( dataSourceServiceIdentity ).
                identifiedBy( "postgresql-index-datasource" ).
                visibleIn( Visibility.module ).
                withCircuitBreaker().
                assemble( persistenceModule );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( module );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "mysql-datasource-service" ).
            identifiedBy( "mysql-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( module );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( module );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "derby-datasource-service" ).
            identifiedBy( "derby-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( module );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( module );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "h2-datasource-service" ).
            identifiedBy( "h2-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( module );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( module );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "postgresql-datasource-service" ).
            identifiedBy( "postgresql-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( module );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( module );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "sqlite-datasource-service" ).
            identifiedBy( "sqlite-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( module );
View Full Code Here

            visibleIn( Visibility.module ).
            withConfig( config, Visibility.layer ).
            assemble( mainModule );

        // DataSource
        new DataSourceAssembler().
            withDataSourceServiceIdentity( "postgres-datasource-service" ).
            identifiedBy( "postgres-datasource" ).
            visibleIn( Visibility.module ).
            withCircuitBreaker().
            assemble( mainModule );
View Full Code Here

            throws AssemblyException
        {
            // START SNIPPET: cb-assembly
            CircuitBreaker circuitBreaker = newDataSourceCircuitBreaker( 5 /* threshold */,
                                                                         1000 * 60 * 5 /* 5min timeout */ );
            new DataSourceAssembler().
                withDataSourceServiceIdentity( DS_SERVICE_ID ).
                identifiedBy( DS_ID ).
                visibleIn( Visibility.layer ).
                withCircuitBreaker( circuitBreaker ).
                assemble( module );
View Full Code Here

TOP

Related Classes of org.qi4j.library.sql.assembly.DataSourceAssembler

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.