public class WebPluginLifeCycle extends Embedded 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 PluginDiscovery |
createDiscovery(javax.servlet.ServletContext context,
ClassLoader classLoader)
Create the service loader discovery, this can be subclassed to provide an implementation, the current
implementation returns a
ServiceLoaderDiscovery instance. |
protected String |
getDefaultCmdMountPointConfig() |
protected String |
getDefaultConfMountPointConfig() |
protected Map<String,FSMountFactory<?>> |
getMountFactories()
This implementation register three file system drivers:
file : the current file system
classpath : the classpath
war : the war content
|
static PluginContext |
getPluginContext(String contextPath)
Returns a plugin context associated with the servlet context or null if such context does not exist.
|
protected String |
resolveCmdMountPointConfig() |
protected String |
resolveConfMountPointConfig() |
create, createCommandFS, createConfFS, createFS, startgetConfig, getContext, setConfig, start, stoppublic static PluginContext getPluginContext(String contextPath) throws NullPointerException
contextPath - the context pathNullPointerException - if the servlet context argument is nullprotected Map<String,FSMountFactory<?>> getMountFactories()
file : the current file systemclasspath : the classpathwar : the war contentgetMountFactories in class Embeddedprotected PluginDiscovery createDiscovery(javax.servlet.ServletContext context, ClassLoader classLoader)
ServiceLoaderDiscovery instance.context - the servlet contextclassLoader - the class loaderpublic void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerprotected String resolveConfMountPointConfig()
resolveConfMountPointConfig in class EmbeddedresolvePathProperty(String, String) with the crash.mountpointconfig.conf name
and the getDefaultConfMountPointConfig() default valueprotected String resolveCmdMountPointConfig()
resolveCmdMountPointConfig in class EmbeddedresolvePathProperty(String, String) with the crash.mountpointconfig.cmd name
and the getDefaultCmdMountPointConfig() default valueprotected String getDefaultCmdMountPointConfig()
war:/WEB-INF/crash/commands/protected String getDefaultConfMountPointConfig()
war:/WEB-INF/crash/public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2015 eXo Platform SAS. All Rights Reserved.