| |
|
| java.lang.Object org.java.plugin.standard.PluginLifecycleHandler
All known Subclasses: org.java.plugin.standard.StandardPluginLifecycleHandler,
PluginLifecycleHandler | abstract public class PluginLifecycleHandler (Code) | | Manager class that handles plug-in life cycle related logic. This class is
part of standard implementation of plug-in manager, other implementations may
not use it at all. The main purpose of this class is to simplify
customization of plug-in manager behavior.
version: $Id$ |
afterPluginStop | abstract protected void afterPluginStop(Plugin plugin) throws PluginLifecycleException(Code) | | This method will be called by
PluginManager just after stopping
plug-in. Put here any "un-initializing" logic that should be executed
after plug-in stop.
Parameters: plugin - plug-in being stopping throws: PluginLifecycleException - if plug-in can't be "un-initialized" |
beforePluginStart | abstract protected void beforePluginStart(Plugin plugin) throws PluginLifecycleException(Code) | | This method will be called by
PluginManager just before starting
plug-in. Put here any "initializing" logic that should be executed before
plug-in start.
Parameters: plugin - plug-in being starting throws: PluginLifecycleException - if plug-in can't be "initialized" |
createPluginClassLoader | abstract protected PluginClassLoader createPluginClassLoader(PluginDescriptor descr)(Code) | | This method should create new instance of class loader for given plug-in.
Parameters: descr - plug-in descriptor class loader instance for given plug-in |
createPluginInstance | abstract protected Plugin createPluginInstance(PluginDescriptor descr) throws PluginLifecycleException(Code) | | This method should create new instance of plug-in class. No initializing
logic should be executed in new class instance during this method call.
Note that this method will NOT be called for those plug-ins that have NO
class declared in plug-in descriptor i.e., method
PluginDescriptor.getPluginClassName returns blank string or
null .
Parameters: descr - plug-in descriptor new not initialized instance of plug-in class throws: PluginLifecycleException - if plug-in class can't be instantiatedfor some reason |
dispose | abstract protected void dispose()(Code) | | Should dispose all resources allocated by this handler instance. No
methods will be called for this class instance after executing this
method.
|
getPluginManager | protected PluginManager getPluginManager()(Code) | | instance of plug-in manager, this handler is "connected" to |
init | protected void init(PluginManager aManager)(Code) | | Initializes this handler instance. This method called once during this
handler instance life cycle.
Parameters: aManager - a plug-in manager, this handler is "connected" to |
|
|
|