|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PluginRegistry
The place where plugins are registered.
| Method Summary | ||
|---|---|---|
|
addPlugin(Class<T> pluginType,
String name,
T plugin)
Adds (registers) a plugin. |
|
|
removePlugin(Class<T> pluginType,
String name,
T plugin)
Removes (unregisters) a plugin. |
|
|
setPluginUser(Class<T> pluginType,
PluginUser<T> pluginUser)
Sets the user for a specific type of plugins. |
|
|
unsetPluginUser(Class<T> pluginType,
PluginUser<T> pluginUser)
|
|
| Method Detail |
|---|
<T> void addPlugin(Class<T> pluginType,
String name,
T plugin)
pluginType - type of the plugin (usually an interface)name - a unique name (within a certain plugin type) for this pluginplugin - the actual plugin implementation
<T> void removePlugin(Class<T> pluginType,
String name,
T plugin)
Plugins should only be removed by the components which register them.
<T> void setPluginUser(Class<T> pluginType,
PluginUser<T> pluginUser)
There can be at most one user for each type of plugin.
Upon setting the plugin user, any plugins already available
of that type are passed to the plugin user using PluginUser.pluginAdded(org.outerj.daisy.plugin.PluginHandle.
pluginType - pluginUser -
<T> void unsetPluginUser(Class<T> pluginType,
PluginUser<T> pluginUser)
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||