Class InstallJCRServletContextListener

java.lang.Object
org.exoplatform.frameworks.jcr.web.InstallJCRServletContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class InstallJCRServletContextListener extends Object implements jakarta.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 Details

    • InstallJCRServletContextListener

      public InstallJCRServletContextListener()
  • Method Details

    • contextInitialized

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

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