use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class EntityTestAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
ServiceDeclaration service = module.services(MemoryEntityStoreService.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
module.services(OrgJsonValueSerializationService.class).taggedWith(ValueSerialization.Formats.JSON);
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class RiakProtobufMapEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(RiakMapEntityStoreService.class).withMixins(RiakProtobufMapEntityStoreMixin.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(RiakProtobufEntityStoreConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class JdbmEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(JdbmEntityStoreService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(JdbmConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class LevelDBEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class);
ServiceDeclaration service = module.services(LevelDBEntityStoreService.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
if (hasConfig()) {
configModule().entities(LevelDBEntityStoreConfiguration.class).visibleIn(configVisibility());
}
}
use of org.qi4j.bootstrap.ServiceDeclaration in project qi4j-sdk by Qi4j.
the class MemoryEntityStoreAssembler method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(UuidIdentityGeneratorService.class).visibleIn(visibility());
ServiceDeclaration service = module.services(MemoryEntityStoreService.class).visibleIn(visibility());
if (hasIdentity()) {
service.identifiedBy(identity());
}
}
Aggregations