Merge pull request #15029 from jpountz/remove/onIndexService

Remove Plugin.onIndexService.
This commit is contained in:
Adrien Grand 2015-12-03 09:46:30 +01:00
commit 6ff82260a7
2 changed files with 0 additions and 14 deletions

View File

@ -70,12 +70,6 @@ public abstract class Plugin {
return Settings.Builder.EMPTY_SETTINGS; return Settings.Builder.EMPTY_SETTINGS;
} }
/**
* Called once the given {@link IndexService} is fully constructed but not yet published.
* This is used to initialize plugin services that require acess to index level resources
*/
public void onIndexService(IndexService indexService) {}
/** /**
* Called before a new index is created on a node. The given module can be used to regsiter index-leve * Called before a new index is created on a node. The given module can be used to regsiter index-leve
* extensions. * extensions.

View File

@ -247,14 +247,6 @@ public class PluginsService extends AbstractComponent {
for (Tuple<PluginInfo, Plugin> plugin : plugins) { for (Tuple<PluginInfo, Plugin> plugin : plugins) {
plugin.v2().onIndexModule(indexModule); plugin.v2().onIndexModule(indexModule);
} }
indexModule.addIndexEventListener(new IndexEventListener() {
@Override
public void afterIndexCreated(IndexService indexService) {
for (Tuple<PluginInfo, Plugin> plugin : plugins) {
plugin.v2().onIndexService(indexService);
}
}
});
} }
/** /**
* Get information about plugins (jvm and site plugins). * Get information about plugins (jvm and site plugins).