|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the concrete plugin interfaceS - the delimiter typepublic interface PluginRegistry<T extends Plugin<S>,S>
Registry for plugins. Allows sophisticated typesafe access to implementations of interfaces extending {link Plugin}.
| Method Summary | ||
|---|---|---|
boolean |
contains(T plugin)
Returns whether the registry contains a given plugin. |
|
int |
countPlugins()
Returns the number of registered plugins. |
|
T |
getPluginFor(S delimiter)
Returns the first plugin found for the given originating system. |
|
|
getPluginFor(S delimiter,
E ex)
Retrieves a required plugin from the registry or throw the given exception if none can be found. |
|
T |
getPluginFor(S delimiter,
T plugin)
Returns the first Plugin supporting the given delimiter or the given plugin if none can be found. |
|
List<T> |
getPlugins()
Returns all Plugins contained in this registry. |
|
List<T> |
getPluginsFor(S delimiter)
Returns all plugins for the given delimiter. |
|
|
getPluginsFor(S delimiter,
E ex)
Retrieves all plugins for the given delimiter or throws an exception if no plugin can be found. |
|
List<T> |
getPluginsFor(S delimiter,
List<? extends T> plugins)
Returns all Plugins supporting the given delimiter or the given plugins if none found. |
|
boolean |
hasPluginFor(S delimiter)
Returns whether the registry contains a Plugin matching the given delimiter. |
|
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
T getPluginFor(S delimiter)
originatingSystem -
null if none foundList<T> getPluginsFor(S delimiter)
delimiter -
<E extends Exception> T getPluginFor(S delimiter,
E ex)
throws E extends Exception
E - the exception type to be thrown in case no plugin can be founddelimiter - ex - the exception to be thrown in case no plugin can be found
E - if no plugin can be found for the given delimiter
E extends Exception
<E extends Exception> List<T> getPluginsFor(S delimiter,
E ex)
throws E extends Exception
E - the exception type to be throwndelimiter - ex -
E - if no plugin can be found
E extends Exception
T getPluginFor(S delimiter,
T plugin)
Plugin supporting the given delimiter or the given plugin if none can be found.
delimiter - plugin -
Plugin supporting the given delimiter or the given Plugin if none found
List<T> getPluginsFor(S delimiter,
List<? extends T> plugins)
Plugins supporting the given delimiter or the given plugins if none found.
delimiter - plugins -
Plugins supporting the given delimiter or the given Plugins if none foundint countPlugins()
boolean contains(T plugin)
plugin -
boolean hasPluginFor(S delimiter)
Plugin matching the given delimiter.
delimiter -
List<T> getPlugins()
Plugins contained in this registry. Will return an immutable List to prevent outside
modifications of the PluginRegistry content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||