public class WebPluginLifeCycle extends PluginLifeCycle implements javax.servlet.ServletContextListener
log| Constructor and Description |
|---|
WebPluginLifeCycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
protected FS |
createCommandFS(javax.servlet.ServletContext context)
Create the command file system, this method binds the
/WEB-INF/crash/commands/ path of the
servlet context. |
protected FS |
createConfFS(javax.servlet.ServletContext context)
Create the conf file system, this method binds the
/WEB-INF/crash/ path of the
servlet context. |
protected PluginDiscovery |
createDiscovery(javax.servlet.ServletContext context,
java.lang.ClassLoader classLoader)
Create the service loader discovery, this can be subclassed to provide an implementation, the current
implementation returns a
ServiceLoaderDiscovery instance. |
protected PluginContext |
createPluginContext(javax.servlet.ServletContext context,
FS cmdFS,
FS confFS,
PluginDiscovery discovery)
Create the plugin context, allowing subclasses to provide a custom configuration.
|
static PluginContext |
getPluginContext(java.lang.String contextPath)
Returns a plugin context associated with the servlet context or null if such context does not exist.
|
getConfig, getContext, setConfig, start, stoppublic static PluginContext getPluginContext(java.lang.String contextPath) throws java.lang.NullPointerException
contextPath - the context pathjava.lang.NullPointerException - if the servlet context argument is nullprotected PluginDiscovery createDiscovery(javax.servlet.ServletContext context, java.lang.ClassLoader classLoader)
ServiceLoaderDiscovery instance.context - the servlet contextclassLoader - the class loaderpublic void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerprotected PluginContext createPluginContext(javax.servlet.ServletContext context, FS cmdFS, FS confFS, PluginDiscovery discovery)
context - the servlet contextcmdFS - the command file systemconfFS - the conf file systemdiscovery - the plugin discoveryprotected FS createCommandFS(javax.servlet.ServletContext context)
/WEB-INF/crash/commands/ path of the
servlet context.context - the servlet contextprotected FS createConfFS(javax.servlet.ServletContext context)
/WEB-INF/crash/ path of the
servlet context.context - the servlet contextpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2014 eXo Platform SAS. All Rights Reserved.