@Override @SuppressWarnings( "unchecked" ) public void assemble( ModuleAssembly module ) throws AssemblyException { module.addServices( HttpService.class ). visibleIn( Visibility.module ). instantiateOnStartup(); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.services( DataSourceConfigurationManagerService.class ).visibleIn( visibility() ).instantiateOnStartup(); } }
public void to( ModuleAssembly module ) throws AssemblyException { for ( ContextListenerDeclaration contextListenerDeclaration : contextListenerDeclarations ) { module.services( contextListenerDeclaration.contextListener() ). setMetaInfo( contextListenerDeclaration.contextListenerInfo() ). instantiateOnStartup().visibleIn( layer ); } }
public void to( ModuleAssembly module ) throws AssemblyException { for ( ServletDeclaration servletDeclaration : servletDeclarations ) { module.services( servletDeclaration.servlet() ). setMetaInfo( servletDeclaration.servletInfo() ). instantiateOnStartup().visibleIn( layer ); } }
@SuppressWarnings( "unchecked" ) public void to( ModuleAssembly module ) throws AssemblyException { for ( FilterAssembler filterAssembler : filterAssemblers ) { module.services( filterAssembler.filter() ). setMetaInfo( filterAssembler.filterInfo() ). instantiateOnStartup().visibleIn( layer ); } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.services( RdbmsRepositoryService.class ) .visibleIn( repositoryVisibility ) .instantiateOnStartup() .identifiedBy( "rdf-indexing" ); module.services( RdfIndexingEngineService.class ) .visibleIn( indexingVisibility ) .instantiateOnStartup(); module.services( RdfQueryParserFactory.class ).visibleIn( indexingVisibility ); module.services( OrgJsonValueSerializationService.class ).taggedWith( ValueSerialization.Formats.JSON ); module.objects( EntityStateSerializer.class, EntityTypeSerializer.class ); } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.services( MemoryRepositoryService.class ) .visibleIn( repositoryVisibility ) .instantiateOnStartup() .identifiedBy( "rdf-repository" ); module.services( RdfIndexingEngineService.class ) .visibleIn( indexingVisibility ) .instantiateOnStartup(); module.services( RdfQueryParserFactory.class ).visibleIn( indexingVisibility ); module.services( OrgJsonValueSerializationService.class ).taggedWith( ValueSerialization.Formats.JSON ); module.objects( EntityStateSerializer.class, EntityTypeSerializer.class ); } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.services( NativeRepositoryService.class ) .visibleIn( repositoryVisibility ) .instantiateOnStartup() .identifiedBy( "rdf-indexing" ); module.services( RdfIndexingEngineService.class ) .visibleIn( indexingVisibility ) .instantiateOnStartup(); module.services( RdfQueryParserFactory.class ).visibleIn( indexingVisibility ); module.services( OrgJsonValueSerializationService.class ).taggedWith( ValueSerialization.Formats.JSON ); module.objects( EntityStateSerializer.class, EntityTypeSerializer.class ); } }
private void onAssemble( ModuleAssembly module, Visibility visibility, ModuleAssembly configModule, Visibility configVisibility ) { module.services( JceDetectorService.class, CryptObjectsFactory.class, CryptCodexService.class, X509GeneratorService.class, CryptIOService.class, DigesterService.class, MACService.class, SymetricGeneratorService.class, AsymetricGeneratorService.class, CipherFactoryService.class, X509ExtensionsReaderService.class, X509ExtensionsBuilderService.class ). visibleIn( visibility ); module.objects( KeyInformation.class ). visibleIn( visibility ); module.services( QiCryptoEngine.class ). visibleIn( Visibility.module ). instantiateOnStartup(); configModule.entities( QiCryptoConfiguration.class ).visibleIn( configVisibility ); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { ServiceDeclaration service = module.services( LiquibaseService.class ). visibleIn( visibility() ). instantiateOnStartup(); if( hasIdentity() ) { service.identifiedBy( identity() ); } if( hasConfig() ) { configModule().entities( LiquibaseConfiguration.class ).visibleIn( configVisibility() ); } } }
@Override public final void assemble( ModuleAssembly module ) throws AssemblyException { ServiceDeclaration service = module.services( httpService() ). visibleIn( visibility() ). instantiateOnStartup(); if( hasIdentity() ) { service.identifiedBy( identity() ); } if( hasConfig() ) { configModule().entities( configurationEntity() ).visibleIn( configVisibility() ); } assembleServer( module ); }
jmx.services( JMXConnectorService.class ).instantiateOnStartup(); config.entities( JMXConnectorConfiguration.class ).visibleIn( Visibility.application ); JMXConnectorConfiguration jmxConfigDefaults = config.forMixin( JMXConnectorConfiguration.class ).declareDefaults();