Search in sources :

Example 1 with JdbmEntityStoreAssembler

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);
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)

Example 2 with JdbmEntityStoreAssembler

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);
        }
    };
}
Also used : RdfMemoryStoreAssembler(org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) RdfNativeSesameStoreAssembler(org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)

Example 3 with JdbmEntityStoreAssembler

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);
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) RdfNativeSesameStoreAssembler(org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler) JdbmConfiguration(org.qi4j.entitystore.jdbm.JdbmConfiguration) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) NativeConfiguration(org.qi4j.library.rdf.repository.NativeConfiguration) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)

Example 4 with JdbmEntityStoreAssembler

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);
        }
    };
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) JdbmConfiguration(org.qi4j.entitystore.jdbm.JdbmConfiguration) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) EhCacheConfiguration(org.qi4j.cache.ehcache.EhCacheConfiguration) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler) Assembler(org.qi4j.bootstrap.Assembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)

Aggregations

JdbmEntityStoreAssembler (org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)4 EntityTestAssembler (org.qi4j.test.EntityTestAssembler)4 ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)3 OrgJsonValueSerializationAssembler (org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)3 JdbmConfiguration (org.qi4j.entitystore.jdbm.JdbmConfiguration)2 RdfNativeSesameStoreAssembler (org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler)2 Assembler (org.qi4j.bootstrap.Assembler)1 EhCacheConfiguration (org.qi4j.cache.ehcache.EhCacheConfiguration)1 RdfMemoryStoreAssembler (org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler)1 NativeConfiguration (org.qi4j.library.rdf.repository.NativeConfiguration)1