| java.lang.Object org.java.plugin.Plugin
All known Subclasses: org.java.plugin.boot.ApplicationPlugin,
Plugin | abstract public class Plugin (Code) | | This is base for "home" class of plug-in runtime. Using this class,
plug-in code can get access to plug-in framework
(
org.java.plugin.PluginManager manager ,
org.java.plugin.registry.PluginRegistry registry ) which was loaded it.
It is also used by manager during plug-in life cycle management (activation
and deactivation).
Plug-in vendor may provide it's own implementation of this class if some
actions should be performed during plug-in activation/deactivation. When no
class specified, framework provides default "empty" implementation that does
nothing when plug-in started and stopped.
version: $Id$ |
Field Summary | |
final protected Log | log Makes logging service available for descending classes. |
log | final protected Log log(Code) | | Makes logging service available for descending classes.
|
doStart | abstract protected void doStart() throws Exception(Code) | | This method will be called once during plug-in activation before any
access to any code from this plug-in.
throws: Exception - if an error has occurred during plug-in start-up |
doStop | abstract protected void doStop() throws Exception(Code) | | This method will be called once during plug-in deactivation. After
this method call, no other code from this plug-in can be accessed,
unless
Plugin.doStart() method will be called again (but for another
instance of this class).
throws: Exception - if an error has occurred during plug-in shutdown |
isActive | final public boolean isActive()(Code) | | true if this plug-in is in active state |
|
|