use of org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler in project qi4j-sdk by Qi4j.
the class JdbmEntityStoreTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
config.services(FileConfigurationService.class).visibleIn(Visibility.layer).instantiateOnStartup();
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
new JdbmEntityStoreAssembler().withConfig(config, Visibility.layer).assemble(module);
}
use of org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler in project qi4j-sdk by Qi4j.
the class Qi95IssueTest method jdbmEntityStoreAssembler.
private Assembler jdbmEntityStoreAssembler() {
return new Assembler() {
@Override
@SuppressWarnings("unchecked")
public void assemble(ModuleAssembly module) throws AssemblyException {
new OrgJsonValueSerializationAssembler().assemble(module);
new JdbmEntityStoreAssembler().visibleIn(Visibility.application).assemble(module);
}
};
}
use of org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler in project qi4j-sdk by Qi4j.
the class ReindexerTest method assemble.
@SuppressWarnings("unchecked")
public void assemble(ModuleAssembly module) throws AssemblyException {
// JDBM EntityStore
new JdbmEntityStoreAssembler().assemble(module);
// Native Sesame EntityFinder
new RdfNativeSesameStoreAssembler().assemble(module);
// Reindexer
module.services(ReindexerService.class);
// Configuration
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
config.entities(JdbmConfiguration.class, NativeConfiguration.class, ReindexerConfiguration.class).visibleIn(Visibility.layer);
// Test entity
module.entities(MyEntity.class);
}
use of org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler in project qi4j-sdk by Qi4j.
the class JdbmEntityStorePerformanceTest method createAssembler.
private static Assembler createAssembler() {
return new Assembler() {
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new JdbmEntityStoreAssembler().assemble(module);
new OrgJsonValueSerializationAssembler().assemble(module);
ModuleAssembly configModule = module.layer().module("Config");
configModule.entities(JdbmConfiguration.class).visibleIn(Visibility.layer);
new EntityTestAssembler().assemble(configModule);
module.services(EhCachePoolService.class);
configModule.entities(EhCacheConfiguration.class).visibleIn(Visibility.layer);
}
};
}
Aggregations