Search in sources :

Example 1 with MemoryEntityStoreAssembler

use of org.qi4j.entitystore.memory.MemoryEntityStoreAssembler in project qi4j-sdk by Qi4j.

the class MemoryEntityStorePerformanceTest method createAssembler.

private static Assembler createAssembler() {
    return new Assembler() {

        @Override
        public void assemble(ModuleAssembly module) throws AssemblyException {
            new MemoryEntityStoreAssembler().assemble(module);
            new OrgJsonValueSerializationAssembler().assemble(module);
        }
    };
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) MemoryEntityStoreAssembler(org.qi4j.entitystore.memory.MemoryEntityStoreAssembler) MemoryEntityStoreAssembler(org.qi4j.entitystore.memory.MemoryEntityStoreAssembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler) Assembler(org.qi4j.bootstrap.Assembler) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)

Example 2 with MemoryEntityStoreAssembler

use of org.qi4j.entitystore.memory.MemoryEntityStoreAssembler in project qi4j-sdk by Qi4j.

the class QueryPerformanceTest method createInfrastructureLayer.

private LayerAssembly createInfrastructureLayer(ApplicationAssembly applicationAssembly) throws AssemblyException {
    LayerAssembly infrastructureLayer = applicationAssembly.layer(LAYER_INFRASTRUCTURE);
    // Persistence module
    ModuleAssembly persistenceModule = infrastructureLayer.module(MODULE_PERSISTENCE);
    // Indexing
    new RdfNativeSesameStoreAssembler().assemble(persistenceModule);
    // Entity store
    new OrgJsonValueSerializationAssembler().assemble(persistenceModule);
    new MemoryEntityStoreAssembler().visibleIn(Visibility.application).assemble(persistenceModule);
    return infrastructureLayer;
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) RdfNativeSesameStoreAssembler(org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler) MemoryEntityStoreAssembler(org.qi4j.entitystore.memory.MemoryEntityStoreAssembler) LayerAssembly(org.qi4j.bootstrap.LayerAssembly) OrgJsonValueSerializationAssembler(org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)

Aggregations

ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)2 MemoryEntityStoreAssembler (org.qi4j.entitystore.memory.MemoryEntityStoreAssembler)2 OrgJsonValueSerializationAssembler (org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)2 Assembler (org.qi4j.bootstrap.Assembler)1 LayerAssembly (org.qi4j.bootstrap.LayerAssembly)1 RdfNativeSesameStoreAssembler (org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler)1