public class NuxeoStarter extends Object implements javax.servlet.ServletContextListener
This class must be configured as a <listener>/<listener-class> in META-INF/web.xml.
It uses servlet init parameters defined through <context-param>/<param-name>/<param-value> in web.xml.
Allowable parameter names come from Environment, mainly
NUXEO_RUNTIME_HOME and
NUXEO_CONFIG_DIR, but also
NUXEO_DATA_DIR,
NUXEO_LOG_DIR, NUXEO_TMP_DIR and NUXEO_WEB_DIR.
| Modifier and Type | Field and Description |
|---|---|
protected List<File> |
bundleFiles |
protected Map<String,Object> |
env |
static String |
NUXEO_BUNDLES_LIST
Name of the file listing Nuxeo bundles.
|
| Constructor and Description |
|---|
NuxeoStarter() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected void |
findBundles(javax.servlet.ServletContext servletContext) |
protected void |
findEnv(javax.servlet.ServletContext servletContext) |
protected void |
start(javax.servlet.ServletContextEvent event) |
protected void |
stop() |
public static final String NUXEO_BUNDLES_LIST
"/WEB-INF/lib/" will be scanned.findBundles(ServletContext),
Constant Field Valuesprotected List<File> bundleFiles
public NuxeoStarter()
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected void start(javax.servlet.ServletContextEvent event) throws IOException, org.osgi.framework.BundleException
IOExceptionorg.osgi.framework.BundleExceptionprotected void stop() throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionprotected void findBundles(javax.servlet.ServletContext servletContext) throws IOException
IOExceptionprotected void findEnv(javax.servlet.ServletContext servletContext)
Copyright © 2016 Nuxeo SA. All rights reserved.