public abstract class Plugin
extends java.lang.Object
manager
,
registry
) which was loaded it.
It is also used by manager during plug-in life cycle management (activation
and deactivation).
Modifier and Type | Field and Description |
---|---|
protected Log |
log
Makes logging service available for descending classes.
|
Constructor and Description |
---|
Plugin() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doStart()
This method will be called once during plug-in activation before any
access to any code from this plug-in.
|
protected abstract void |
doStop()
This method will be called once during plug-in deactivation.
|
PluginDescriptor |
getDescriptor() |
PluginManager |
getManager() |
boolean |
isActive() |
java.lang.String |
toString() |
public final PluginDescriptor getDescriptor()
public final PluginManager getManager()
public final boolean isActive()
true
if this plug-in is in active stateprotected abstract void doStart() throws java.lang.Exception
java.lang.Exception
- if an error has occurred during plug-in start-upprotected abstract void doStop() throws java.lang.Exception
doStart()
method will be called again (but for another
instance of this class).java.lang.Exception
- if an error has occurred during plug-in shutdownpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.