|
Celtix User APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginManager
Provides methods for registering, unregistering and obtaining plugin objects.
Method Summary | |
---|---|
Configuration |
getConfiguration()
Returns the Configuration . |
Object |
getPlugin(String className)
Returns the plugin object with the given classname. |
Object |
getPluginByName(String name)
Returns the plugin object with the given name. |
ClassLoader |
getPluginClassLoader()
Get the plugin class loader. |
void |
registerPlugin(Object plugin)
Registers a plugin object with the bus. |
void |
unloadPlugin(Object plugin)
Unload a plugin object after it has been explicitly unregistered. |
void |
unregisterPlugin(Object plugin)
Explicitly unregister the given plugin object from the bus. |
Method Detail |
---|
ClassLoader getPluginClassLoader()
Configuration getConfiguration()
Configuration
.
Object getPluginByName(String name) throws PluginException
name
- - the name of the plugin.
PluginException
- - if there is a circular dependency loading
dependent objects of the plugin.Object getPlugin(String className) throws PluginException
className
- - the class name of the plugin.
PluginException
- - if there is a circular dependency loading
dependent objects of the plugin.void registerPlugin(Object plugin) throws PluginException
plugin
- - the plugin to register.
PluginException
- if the given plugin is already registered.void unregisterPlugin(Object plugin) throws PluginException
plugin
- - the plugin to unregister.
PluginException
- if the given plugin is not registered.void unloadPlugin(Object plugin) throws PluginException
plugin
- - the plugin to unload.
PluginException
- if the given plugin is still registered.
|
Celtix User APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |