Heya,
I would like to check if mandatory plugins for my own plugin are loaded.
Is it possible?
For example, I have the FSRiver which depends on mapper-attachment plugin.
I'm thinking of verifying mapper attachment plugin when the river starts:
https://github.com/dadoonet/fsriver/blob/master/src/main/java/org/elasticsearch/river/fs/FsRiver.java#L83
https://github.com/dadoonet/fsriver/blob/master/src/main/java/org/elasticsearch/river/fs/FsRiver.java#L83
Is it the best place to do it or is it better to do it when I register the
plugin:
https://github.com/dadoonet/fsriver/blob/master/src/main/java/org/elasticsearch/plugin/river/fs/FsRiverPlugin.java#L45
https://github.com/dadoonet/fsriver/blob/master/src/main/java/org/elasticsearch/plugin/river/fs/FsRiverPlugin.java#L45
And how can I check that in Java?
Thanks for your advices.
David.
--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs