|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.plugin.PluginRegistry
public class PluginRegistry
A special registry that is capable to hold any number of plug-ins of any type.
| Constructor Summary | |
|---|---|
PluginRegistry()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getPlugin(java.lang.String pluginId)
Returns the plug-in with the specified ID or null if no such plug-in can be found in the registry. |
java.lang.Object |
getPlugin(java.lang.String pluginId,
java.lang.Class pluginType)
Returns the plug-in with the specified ID and the given type or null if no such plug-in can be found in the registry. |
java.lang.String[] |
getPluginIDsOfType(java.lang.Class pluginType)
Returns the IDs of all plug-ins that are of the specified type. |
java.lang.Object[] |
getPluginsOfType(java.lang.Class pluginType)
Returns all plug-ins that are of the specified type. |
int |
loadPluginsFrom(java.lang.String filename)
Load all plug-ins that are defined in any library in the specified file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginRegistry()
| Method Detail |
|---|
public int loadPluginsFrom(java.lang.String filename)
filename - The name of the file(s) where the plug-in defeinition is looked up
public java.lang.Object getPlugin(java.lang.String pluginId)
pluginId - The identifier of the plug-in (must not be null)
public java.lang.Object getPlugin(java.lang.String pluginId,
java.lang.Class pluginType)
pluginId - The identifier of the plug-in (must not be null)pluginType - The type of the plug-in (must not be null)
public java.lang.Object[] getPluginsOfType(java.lang.Class pluginType)
pluginType - The type the plug-ins to look for must comply with
public java.lang.String[] getPluginIDsOfType(java.lang.Class pluginType)
pluginType - The type the plug-ins to look for must comply with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||