|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.CRaSHPlugin<P>
P - the plugin typepublic abstract class CRaSHPlugin<P>
Base class for a plugin, that consist of a subclass of this class and the implementation
of the business interface of the plugin. The business interface of the plugin is simply
represented by the P generic parameter and its associated class Class<P>>.
| Field Summary | |
|---|---|
(package private) static int |
CONSTRUCTED
. |
(package private) PluginContext |
context
. |
(package private) static int |
FAILED
. |
(package private) static int |
INITIALIZED
. |
(package private) static int |
INITIALIZING
. |
protected org.slf4j.Logger |
log
. |
(package private) int |
status
. |
private Class<P> |
type
. |
| Constructor Summary | |
|---|---|
protected |
CRaSHPlugin()
|
| Method Summary | |
|---|---|
void |
destroy()
|
protected PluginContext |
getContext()
|
abstract P |
getImplementation()
Returns the implementation. |
Class<P> |
getType()
|
void |
init()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger log
static final int FAILED
static final int CONSTRUCTED
static final int INITIALIZING
static final int INITIALIZED
PluginContext context
int status
private final Class<P> type
| Constructor Detail |
|---|
protected CRaSHPlugin()
| Method Detail |
|---|
protected final PluginContext getContext()
public final Class<P> getType()
public abstract P getImplementation()
public void init()
public void destroy()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||