edu.iu.iv.common.plugin
Class BasicPluginRegistry
java.lang.Object
|
+--edu.iu.iv.common.plugin.BasicPluginRegistry
- All Implemented Interfaces:
- PluginRegistry
- public class BasicPluginRegistry
- extends java.lang.Object
- implements PluginRegistry
A basic implementation of the PluginRegistry interface.
- Author:
- Josh Bonner
|
Method Summary |
java.util.Iterator |
getAllPlugins()
|
java.util.Iterator |
getSupportingPlugins(java.lang.Object model)
Returns an iterator over the plugins in this registry that support
the given model. |
void |
register(Plugin plugin)
Adds the given plugin to the registry. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPluginRegistry
public BasicPluginRegistry()
register
public void register(Plugin plugin)
- Description copied from interface:
PluginRegistry
- Adds the given plugin to the registry.
- Specified by:
register in interface PluginRegistry
- Parameters:
plugin - the plugin to add- See Also:
edu.iu.iv.core.PluginRegistry#register(edu.iu.iv.core.Plugin)
getSupportingPlugins
public java.util.Iterator getSupportingPlugins(java.lang.Object model)
- Description copied from interface:
PluginRegistry
- Returns an iterator over the plugins in this registry that support
the given model.
- Specified by:
getSupportingPlugins in interface PluginRegistry
- Parameters:
model - the model support is desired for
- Returns:
- an iterator over the supporting plugins
- See Also:
edu.iu.iv.core.PluginRegistry#getSupportingPlugins(java.lang.Object)
getAllPlugins
public java.util.Iterator getAllPlugins()
- Specified by:
getAllPlugins in interface PluginRegistry
- Returns:
- an iterator over all of this registry's plugins
- See Also:
edu.iu.iv.core.PluginRegistry#getPlugins()