org.crsh.plugin
Class PluginLifeCycle

java.lang.Object
  extended by org.crsh.plugin.PluginLifeCycle
Direct Known Subclasses:
Bootstrap, Embedded

public abstract class PluginLifeCycle
extends Object

The base class for managing the CRaSH life cycle.


Field Summary
private  Properties config
          .
private  PluginContext context
          .
protected  Logger log
          .
 
Constructor Summary
PluginLifeCycle()
           
 
Method Summary
private  void configureProperty(PluginContext context, Properties props, PropertyDescriptor<?> desc)
           
 Properties getConfig()
           
 PluginContext getContext()
           
 void setConfig(Properties config)
           
protected  void start(PluginContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
.


context

private PluginContext context
.


config

private Properties config
.

Constructor Detail

PluginLifeCycle

public PluginLifeCycle()
Method Detail

getConfig

public Properties getConfig()

setConfig

public void setConfig(Properties config)

getContext

public PluginContext getContext()

start

protected final void start(PluginContext context)
                    throws IllegalStateException
Throws:
IllegalStateException

stop

public final void stop()
                throws IllegalStateException
Throws:
IllegalStateException

configureProperty

private void configureProperty(PluginContext context,
                               Properties props,
                               PropertyDescriptor<?> desc)


Copyright © 2015 eXo Platform SAS. All Rights Reserved.