Package org.nuxeo.runtime.deployment
Class NuxeoStarter
java.lang.Object
org.nuxeo.runtime.deployment.NuxeoStarter
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
This is called at WAR startup and starts the Nuxeo OSGi runtime and registers the Nuxeo bundles with it.
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent event) voidcontextInitialized(jakarta.servlet.ServletContextEvent event) protected voidfindBundles(jakarta.servlet.ServletContext servletContext) protected voidfindEnv(jakarta.servlet.ServletContext servletContext) protected voidstart(jakarta.servlet.ServletContextEvent event) protected voidstop()
-
Field Details
-
NUXEO_BUNDLES_LIST
Name of the file listing Nuxeo bundles. If existing, this file will be used at start, else"/WEB-INF/lib/"will be scanned.- Since:
- 5.9.3
- See Also:
-
env
-
bundleFiles
-
-
Constructor Details
-
NuxeoStarter
public NuxeoStarter()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent event) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
start
protected void start(jakarta.servlet.ServletContextEvent event) throws IOException, org.osgi.framework.BundleException - Throws:
IOExceptionorg.osgi.framework.BundleException
-
stop
protected void stop() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
findBundles
- Throws:
IOException
-
findEnv
protected void findEnv(jakarta.servlet.ServletContext servletContext)
-