Class InstallJCRServletContextListener
- java.lang.Object
-
- org.exoplatform.frameworks.jcr.web.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 filterThreadLocalSessionProviderInitializedFiltermust 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 aServletContextListener.
-
-
Constructor Summary
Constructors Constructor Description InstallJCRServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent contextEvent)voidcontextInitialized(javax.servlet.ServletContextEvent contextEvent)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent contextEvent)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent contextEvent)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-