Package org.openbravo.base
Class ConnectionProviderContextListener
- java.lang.Object
-
- org.openbravo.base.ConnectionProviderContextListener
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class ConnectionProviderContextListener extends Object implements javax.servlet.ServletContextListener
Manage the creation and destruction of the db connection pool..- Author:
- Ben Sommerville
-
-
Field Summary
Fields Modifier and Type Field Description static String
POOL_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description ConnectionProviderContextListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent event)
void
contextInitialized(javax.servlet.ServletContextEvent event)
static ConnectionProvider
getPool()
static ConnectionProvider
getPool(javax.servlet.ServletContext context)
static void
reloadPool(javax.servlet.ServletContext context)
-
-
-
Field Detail
-
POOL_ATTRIBUTE
public static final String POOL_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
getPool
public static ConnectionProvider getPool(javax.servlet.ServletContext context)
-
getPool
public static ConnectionProvider getPool()
-
-