Package org.apereo.cas
Class JdbcServletContextListener
- java.lang.Object
-
- org.apereo.cas.JdbcServletContextListener
-
- All Implemented Interfaces:
java.util.EventListener,javax.servlet.ServletContextListener
@WebListener public class JdbcServletContextListener extends java.lang.Object implements javax.servlet.ServletContextListenerThis isJdbcServletContextListenerthat properly deregisters JDBC drivers in this context's ClassLoader.Note that Slf4j logging does not work in contextDestroyed, likely due to the fact that the logging framework as shutdown and its context is destroyed sooner than this listener. We need to stick to old-school logging method.
- Since:
- 6.2.0
-
-
Constructor Summary
Constructors Constructor Description JdbcServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public final void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-