T
- the concrete plugin interfaceS
- the delimiter typepublic interface PluginRegistry<T extends Plugin<S>,S> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
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.
|
<E extends Exception> |
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
Plugin s contained in this registry. |
List<T> |
getPluginsFor(S delimiter)
Returns all plugins for the given delimiter.
|
<E extends Exception> |
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
Plugin s 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. |
forEach, iterator, spliterator
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 foundE
- if no plugin can be found for the given delimiterE 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 foundE extends Exception
T getPluginFor(S delimiter, T plugin)
Plugin
supporting the given delimiter or the given plugin if none can be found.List<T> getPluginsFor(S delimiter, List<? extends T> plugins)
Plugin
s supporting the given delimiter or the given plugins if none found.int countPlugins()
boolean contains(T plugin)
plugin
- boolean hasPluginFor(S delimiter)
Plugin
matching the given delimiter.delimiter
- List<T> getPlugins()
Plugin
s contained in this registry. Will return an immutable List
to prevent outside
modifications of the PluginRegistry
content.Copyright © 2008-2014–2015 Pivotal, Inc.. All rights reserved.