Class InstallJCRServletContextListener

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

    public class InstallJCRServletContextListener
    extends Object
    implements javax.servlet.ServletContextListener
    This is a service that is injected via Kernel Container to install a JCR Web Filter. The filter ThreadLocalSessionProviderInitializedFilter must be injected in the main webapp (portal.war) and rest webapp (rest.war). Since the JCR is an addon, in order to avoid updating the web.xml file of portal.war and rest.war, the filter must be injected dynamically through a ServletContextListener.
    • Constructor Detail

      • InstallJCRServletContextListener

        public InstallJCRServletContextListener()
    • Method Detail

      • contextInitialized

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

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