use of org.elasticsearch.rest.RestModule 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);
}
Aggregations