Search in sources :

Example 6 with FileConfigurationOverride

use of org.qi4j.library.fileconfig.FileConfigurationOverride in project qi4j-sdk by Qi4j.

the class SolrQueryTest method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    super.assemble(module);
    FileConfigurationOverride override = new FileConfigurationOverride().withData(new File(DATA_DIR, "qi4j-data")).withLog(new File(DATA_DIR, "qi4j-logs")).withTemporary(new File(DATA_DIR, "qi4j-temp"));
    module.services(FileConfigurationService.class).setMetaInfo(override);
    new SolrAssembler().assemble(module);
}
Also used : FileConfigurationService(org.qi4j.library.fileconfig.FileConfigurationService) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride) File(java.io.File) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride)

Example 7 with FileConfigurationOverride

use of org.qi4j.library.fileconfig.FileConfigurationOverride in project qi4j-sdk by Qi4j.

the class SolrEntityFinderTest method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    super.assemble(module);
    FileConfigurationOverride override = new FileConfigurationOverride().withData(new File(DATA_DIR, "qi4j-data")).withLog(new File(DATA_DIR, "qi4j-logs")).withTemporary(new File(DATA_DIR, "qi4j-temp"));
    module.services(FileConfigurationService.class).setMetaInfo(override);
    new SolrAssembler().assemble(module);
}
Also used : FileConfigurationService(org.qi4j.library.fileconfig.FileConfigurationService) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride) File(java.io.File) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride)

Example 8 with FileConfigurationOverride

use of org.qi4j.library.fileconfig.FileConfigurationOverride in project qi4j-sdk by Qi4j.

the class ElasticSearchComplexQueryTest method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    super.assemble(module);
    // Config module
    ModuleAssembly config = module.layer().module("config");
    new EntityTestAssembler().assemble(config);
    // Index/Query
    new ESFilesystemIndexQueryAssembler().withConfig(config, Visibility.layer).assemble(module);
    ElasticSearchConfiguration esConfig = config.forMixin(ElasticSearchConfiguration.class).declareDefaults();
    esConfig.indexNonAggregatedAssociations().set(Boolean.TRUE);
    // FileConfig
    FileConfigurationOverride override = new FileConfigurationOverride().withData(new File(DATA_DIR, "qi4j-data")).withLog(new File(DATA_DIR, "qi4j-logs")).withTemporary(new File(DATA_DIR, "qi4j-temp"));
    module.services(FileConfigurationService.class).setMetaInfo(override);
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) ESFilesystemIndexQueryAssembler(org.qi4j.index.elasticsearch.assembly.ESFilesystemIndexQueryAssembler) FileConfigurationService(org.qi4j.library.fileconfig.FileConfigurationService) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride) File(java.io.File) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride)

Example 9 with FileConfigurationOverride

use of org.qi4j.library.fileconfig.FileConfigurationOverride in project qi4j-sdk by Qi4j.

the class SolrNamedQueryTest method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    super.assemble(module);
    FileConfigurationOverride override = new FileConfigurationOverride().withData(new File(DATA_DIR, "qi4j-data")).withLog(new File(DATA_DIR, "qi4j-logs")).withTemporary(new File(DATA_DIR, "qi4j-temp"));
    module.services(FileConfigurationService.class).setMetaInfo(override);
    new SolrAssembler().assemble(module);
}
Also used : FileConfigurationService(org.qi4j.library.fileconfig.FileConfigurationService) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride) File(java.io.File) FileConfigurationOverride(org.qi4j.library.fileconfig.FileConfigurationOverride)

Aggregations

File (java.io.File)9 FileConfigurationOverride (org.qi4j.library.fileconfig.FileConfigurationOverride)9 FileConfigurationService (org.qi4j.library.fileconfig.FileConfigurationService)9 EntityTestAssembler (org.qi4j.test.EntityTestAssembler)6 ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)5 ESFilesystemIndexQueryAssembler (org.qi4j.index.elasticsearch.assembly.ESFilesystemIndexQueryAssembler)5