use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class FileEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(FileEntityStoreService.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(FileEntityStoreConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class HazelcastEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(HazelcastEntityStoreService.class).visibleIn(visibility()).instantiateOnStartup();
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(HazelcastConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class JCloudsMapEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class);
ServiceDeclaration service = module.services(JCloudsMapEntityStoreService.class).visibleIn(visibility()).instantiateOnStartup();
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(JCloudsMapEntityStoreConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class RiakHttpMapEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(RiakMapEntityStoreService.class).withMixins(RiakHttpMapEntityStoreMixin.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(RiakHttpEntityStoreConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class PasswordDomainAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.entities(PasswordSecurable.class).visibleIn(visibility());
ServiceDeclaration service = module.services(PasswordRealmService.class).instantiateOnStartup().visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(PasswordRealmConfiguration.class).visibleIn(configVisibility());
}
}
Aggregations