public abstract class CRaSHPlugin<P> extends Object
Modifier and Type | Field and Description |
---|---|
private List<PropertyDescriptor<?>> |
configurationCapabilities
.
|
static int |
CONSTRUCTED
.
|
(package private) PluginContext |
context
.
|
static int |
FAILED
.
|
static int |
INITIALIZED
.
|
static int |
INITIALIZING
.
|
protected Logger |
log
.
|
(package private) int |
status
.
|
private Class<P> |
type
.
|
Modifier | Constructor and Description |
---|---|
protected |
CRaSHPlugin() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities()
Returns a list of
PropertyDescriptor this plugin requires for its configuration. |
void |
destroy()
Implement this method to know about destroy life cycle callback.
|
Iterable<PropertyDescriptor<?>> |
getConfigurationCapabilities()
Returns a list of
PropertyDescriptor this plugin requires for its configuration. |
protected PluginContext |
getContext() |
abstract P |
getImplementation()
Returns the implementation.
|
int |
getStatus()
Returns the current plugin status.
|
Class<P> |
getType()
Returns the plugin type.
|
void |
init()
Implement this method to know about init life cycle callback.
|
String |
toString() |
public static final int FAILED
public static final int CONSTRUCTED
public static final int INITIALIZING
public static final int INITIALIZED
PluginContext context
int status
private List<PropertyDescriptor<?>> configurationCapabilities
protected CRaSHPlugin()
protected final PluginContext getContext()
public int getStatus()
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
PropertyDescriptor
this plugin requires for its configuration.public final Iterable<PropertyDescriptor<?>> getConfigurationCapabilities()
PropertyDescriptor
this plugin requires for its configuration.public abstract P getImplementation()
public void init()
public void destroy()
Copyright © 2015 eXo Platform SAS. All Rights Reserved.