org.crsh.plugin
Class WebPluginLifeCycle

java.lang.Object
  extended by org.crsh.plugin.PluginLifeCycle
      extended by org.crsh.plugin.WebPluginLifeCycle

public class WebPluginLifeCycle
extends PluginLifeCycle

Version:
$Revision$
Author:
Julien Viet

Field Summary
private static Map<String,PluginContext> contextMap
          .
private static Object lock
          .
private  boolean registered
          .
 
Fields inherited from class org.crsh.plugin.PluginLifeCycle
log
 
Constructor Summary
WebPluginLifeCycle()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
static PluginContext getPluginContext(ServletContext sc)
          Returns a plugin context associated with the servlet context or null if such context does not exist.
 
Methods inherited from class org.crsh.plugin.PluginLifeCycle
getConfig, getContext, setConfig, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

private static final Object lock
.


contextMap

private static final Map<String,PluginContext> contextMap
.


registered

private boolean registered
.

Constructor Detail

WebPluginLifeCycle

public WebPluginLifeCycle()
Method Detail

getPluginContext

public static PluginContext getPluginContext(ServletContext sc)
                                      throws NullPointerException
Returns a plugin context associated with the servlet context or null if such context does not exist.

Parameters:
sc - the servlet context
Returns:
the associated plugin context
Throws:
NullPointerException - if the servlet context argument is null

contextInitialized

public void contextInitialized(ServletContextEvent sce)

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.