org.crsh.plugin
Class CRaSHPlugin<P>

java.lang.Object
  extended by org.crsh.plugin.CRaSHPlugin<P>
Type Parameters:
P - the plugin type
Direct Known Subclasses:
CommandPlugin, JCRPlugin, ProcessorIOHandler, SSHPlugin

public abstract class CRaSHPlugin<P>
extends Object

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>>.

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  org.slf4j.Logger log
          .
 
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

log

protected final org.slf4j.Logger log
.

Constructor Detail

CRaSHPlugin

protected CRaSHPlugin()
Method Detail

getContext

protected final PluginContext getContext()

getType

public final Class<P> getType()

getImplementation

public abstract P getImplementation()
Returns the implementation.

Returns:
the implementation

init

public void init()

destroy

public void destroy()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 eXo Platform SAS. All Rights Reserved.