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 );