Class PluginFrameworkContextListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class PluginFrameworkContextListener
    extends Object
    implements javax.servlet.ServletContextListener
    Starts the plugin framework when the application starts and shuts it down when it finishes. The framework will only be started if a database connection is available and there are no upgrade errors.

    Should always be found after the upgrade listener in web.xml, and before the lifecycle plugin listener.

    During setup, the plugin framework is not started here. In that case, its initialisation is triggered by an event published when the database is first configured.

    Since:
    4.0
    • Constructor Detail

      • PluginFrameworkContextListener

        public PluginFrameworkContextListener()
    • Method Detail

      • contextInitialized

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

        public void contextDestroyed​(javax.servlet.ServletContextEvent servletContextEvent)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener