Class NuxeoStarter

java.lang.Object
org.nuxeo.runtime.deployment.NuxeoStarter
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class NuxeoStarter extends Object implements javax.servlet.ServletContextListener
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 Details

  • Constructor Details

    • NuxeoStarter

      public NuxeoStarter()
  • Method Details

    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent event)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent event)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
    • start

      protected void start(javax.servlet.ServletContextEvent event) throws IOException, org.osgi.framework.BundleException
      Throws:
      IOException
      org.osgi.framework.BundleException
    • stop

      protected void stop() throws org.osgi.framework.BundleException
      Throws:
      org.osgi.framework.BundleException
    • findBundles

      protected void findBundles(javax.servlet.ServletContext servletContext) throws IOException
      Throws:
      IOException
    • findEnv

      protected void findEnv(javax.servlet.ServletContext servletContext)