public abstract class Plugin extends 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 org.apache.commons.logging.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() |
String |
toString() |
protected final org.apache.commons.logging.Log log
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 Exception
Exception - if an error has occurred during plug-in start-upprotected abstract void doStop()
throws Exception
doStart() method will be called again (but for another
instance of this class).Exception - if an error has occurred during plug-in shutdownpublic String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.