elasticsearch/elasticsearch — Issue #1613: Plugins: Allow for plugins to implement onModule method that will be automatically injected with the relevant module type
Author: kimchy
Created: 2012-01-15 14:42:09+00:00
State: open
Labels: feature, v0.19.0

Currently, to add custom injections to different modules, plugins need to implement `processModule` method and then do instanceof checks.

Allow for plugins to implement an `onModule` method that will be injected automatically with the parameter module type. For example: `onModule(AnalyzerModule module) {...}`.