better generics in plugin module instance providers

This commit is contained in:
Shay Banon 2012-06-25 22:50:15 +02:00
parent c39a27a328
commit 6c74f99ed3
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ public interface Plugin {
* *
* @param settings The node level settings. * @param settings The node level settings.
*/ */
Collection<Module> modules(Settings settings); Collection<? extends Module> modules(Settings settings);
/** /**
* Node level services that will be automatically started/stopped/closed. * Node level services that will be automatically started/stopped/closed.
@ -70,7 +70,7 @@ public interface Plugin {
/** /**
* Per index modules. * Per index modules.
*/ */
Collection<Module> indexModules(Settings settings); Collection<? extends Module> indexModules(Settings settings);
/** /**
* Per index services that will be automatically closed. * Per index services that will be automatically closed.
@ -85,7 +85,7 @@ public interface Plugin {
/** /**
* Per index shard module. * Per index shard module.
*/ */
Collection<Module> shardModules(Settings settings); Collection<? extends Module> shardModules(Settings settings);
/** /**
* Per index shard service that will be automatically closed. * Per index shard service that will be automatically closed.