Package org.apereo.cas
Class JdbcServletContextListener
java.lang.Object
org.apereo.cas.JdbcServletContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
@WebListener
public class JdbcServletContextListener
extends Object
implements jakarta.servlet.ServletContextListener
This is
JdbcServletContextListener that 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 -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.ServletContextListener
contextInitialized
-
Constructor Details
-
JdbcServletContextListener
public JdbcServletContextListener()
-
-
Method Details
-
contextDestroyed
public final void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-