@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( 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 protected void onAssemble( ModuleAssembly module, String identity, Visibility visibility ) { module.services( DBCPDataSourceServiceImporter.class ).identifiedBy( identity ).visibleIn( visibility ); }
@Override public final void assemble( ModuleAssembly module ) throws AssemblyException { module.values( DataSourceConfigurationValue.class ).visibleIn( Visibility.module ); module.services( EntityToValueService.class ).visibleIn( Visibility.module ); if( hasConfig() ) { configModule().entities( DataSourceConfiguration.class ).visibleIn( configVisibility() ); } onAssemble( module, identity() == null ? DEFAULT_DATASOURCE_SERVICE_IDENTITY : identity(), visibility() ); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { // ModuleAssembly storageModule = module.layer().module( "storage" ); ModuleAssembly storageModule = module; // Disable the more complex set up. The entire value serialization has gotten the deserialization type lookup problem wrong. module.configurations( ConfigSerializationConfig.class ); module.values( Host.class ); module.services( MyService.class ).identifiedBy( "configtest" ); storageModule.services( MemoryEntityStoreService.class ).visibleIn( Visibility.layer ); storageModule.services( OrgJsonValueSerializationService.class ).taggedWith( ValueSerialization.Formats.JSON ); storageModule.services( UuidIdentityGeneratorService.class ); }
@Override @SuppressWarnings( "unchecked" ) public void assemble( ModuleAssembly module ) throws AssemblyException { module.objects( MigrationEventLogger.class ); module.importedServices( MigrationEventLogger.class ).importedBy( NewObjectImporter.class ); MigrationBuilder pre_1_0_migration = new Pre_1_0_QiPkiCaMigrationBuilder(); module.services( MigrationService.class ).setMetaInfo( pre_1_0_migration ); module.entities( MigrationConfiguration.class ); module.forMixin( MigrationConfiguration.class ).declareDefaults().lastStartupVersion().set( "1.0-alpha1" ); }
public void to( ModuleAssembly module ) throws AssemblyException { for ( ContextListenerDeclaration contextListenerDeclaration : contextListenerDeclarations ) { module.services( contextListenerDeclaration.contextListener() ). setMetaInfo( contextListenerDeclaration.contextListenerInfo() ). instantiateOnStartup().visibleIn( layer ); } }
protected final void assembleServer( ModuleAssembly module ) { serverModule = serverModule != null ? serverModule : module; ImportedServiceDeclaration server = serverModule.importedServices( Server.class ). importedBy( InstanceImporter.class ). setMetaInfo( new Server() ). visibleIn( serverVisibility ); if( serverIdentity != null ) { server.identifiedBy( serverIdentity ); } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.values( SomeValue.class, AnotherValue.class, FooValue.class, CustomFooValue.class, SpecificCollection.class /*, SpecificValue.class, GenericValue.class */ ); new EntityTestAssembler().visibleIn( Visibility.layer ).assemble( module.layer().module( "persistence" ) ); module.entities( BarEntity.class ); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.services( LoggingServiceComposite.class ); }
public void assemble( ModuleAssembly module ) { module.entities( Account.class ).withMixins( LdapAuthenticatorMixin.class ); : }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { module.values( SomeValue.class ); }
@Override public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory ) throws AssemblyException { ApplicationAssembly applicationAssembly = applicationFactory.newApplicationAssembly(); applicationAssembly.setMode( Application.Mode.test ); defineApplication( applicationAssembly ); return applicationAssembly; } };
@Override public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory ) throws AssemblyException { return applicationFactory.newApplicationAssembly( asm ); } };
@Override protected void onAssemble( ModuleAssembly module, String identity, Visibility visibility ) { module.services( BoneCPDataSourceServiceImporter.class ).identifiedBy( identity ).visibleIn( visibility ); }
protected void assembleCachePool( ModuleAssembly module ) throws AssemblyException { module.services( MemoryCachePoolService.class ); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { ServiceDeclaration service = module.services( ValueToEntityService.class ).visibleIn( visibility() ); if( hasIdentity() ) { service.identifiedBy( identity() ); } } }