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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent contextEvent) voidcontextInitialized(jakarta.servlet.ServletContextEvent contextEvent)
-
Constructor Details
-
InstallJCRServletContextListener
public InstallJCRServletContextListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent contextEvent) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent contextEvent) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-