Search in sources :

Example 1 with IndicesAnalysisModule

use of org.elasticsearch.indices.analysis.IndicesAnalysisModule in project elasticsearch-skywalker by jprante.

the class SkywalkerTests method test.

@Test
public void test() {
    Settings settings = ImmutableSettings.settingsBuilder().build();
    Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings), new EnvironmentModule(new Environment(settings)), new IndicesAnalysisModule()).createInjector();
    ActionModule actionModule = new ActionModule(true);
    RestModule restModule = new RestModule(settings);
    SkywalkerPlugin plugin = new SkywalkerPlugin();
    plugin.onModule(actionModule);
    plugin.onModule(restModule);
}
Also used : IndicesAnalysisModule(org.elasticsearch.indices.analysis.IndicesAnalysisModule) RestModule(org.elasticsearch.rest.RestModule) EnvironmentModule(org.elasticsearch.env.EnvironmentModule) Injector(org.elasticsearch.common.inject.Injector) ActionModule(org.elasticsearch.action.ActionModule) SettingsModule(org.elasticsearch.common.settings.SettingsModule) Environment(org.elasticsearch.env.Environment) ModulesBuilder(org.elasticsearch.common.inject.ModulesBuilder) Settings(org.elasticsearch.common.settings.Settings) ImmutableSettings(org.elasticsearch.common.settings.ImmutableSettings) Test(org.testng.annotations.Test)

Aggregations

ActionModule (org.elasticsearch.action.ActionModule)1 Injector (org.elasticsearch.common.inject.Injector)1 ModulesBuilder (org.elasticsearch.common.inject.ModulesBuilder)1 ImmutableSettings (org.elasticsearch.common.settings.ImmutableSettings)1 Settings (org.elasticsearch.common.settings.Settings)1 SettingsModule (org.elasticsearch.common.settings.SettingsModule)1 Environment (org.elasticsearch.env.Environment)1 EnvironmentModule (org.elasticsearch.env.EnvironmentModule)1 IndicesAnalysisModule (org.elasticsearch.indices.analysis.IndicesAnalysisModule)1 RestModule (org.elasticsearch.rest.RestModule)1 Test (org.testng.annotations.Test)1