Package javatapas.servlet
Class ServletContextListenerDbPool
java.lang.Object
javatapas.servlet.ServletContextListenerDbPool
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class ServletContextListenerDbPool extends Object implements javax.servlet.ServletContextListener
Load a Database Connection Pool into the Servlet Context so that it can be used across any servlet.
Published at https://www.javatapas.com/servlet/Java-Servlet-Context-Listener-Db-Pool.html
Javadoc at https://www.javatapas.com/docs/javatapas/servlet/ServletContextListenerDbPool.html
Published at https://www.javatapas.com/servlet/Java-Servlet-Context-Listener-Db-Pool.html
Javadoc at https://www.javatapas.com/docs/javatapas/servlet/ServletContextListenerDbPool.html
- Version:
- 2021-06-10
- Author:
- Kodiak Brown
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.servlet.ServletContext
servletContext
-
Constructor Summary
Constructors Constructor Description ServletContextListenerDbPool()
-
Method Summary
Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent contextEvent)
void
contextInitialized(javax.servlet.ServletContextEvent contextEvent)
-
Field Details
-
servletContext
javax.servlet.ServletContext servletContext
-
-
Constructor Details
-
ServletContextListenerDbPool
public ServletContextListenerDbPool()
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent contextEvent)- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent contextEvent)- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-