Package org.openbravo.dal.core
Class DalContextListener
- java.lang.Object
-
- org.openbravo.dal.core.DalContextListener
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class DalContextListener extends Object implements javax.servlet.ServletContextListener
Initializes the dal layer when the servlet container starts.- Author:
- mtaal
- See Also:
DalLayerInitializer
-
-
Constructor Summary
Constructors Constructor Description DalContextListener()
-
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)
Reads the Openbravo.properties file, initializes the Dal layer and flags that the Dal layer is running in a web container.static Properties
getOpenBravoProperties()
static javax.servlet.ServletContext
getServletContext()
static void
setServletContext(javax.servlet.ServletContext context)
-
-
-
Method Detail
-
getServletContext
public static javax.servlet.ServletContext getServletContext()
-
setServletContext
public static void setServletContext(javax.servlet.ServletContext context)
-
getOpenBravoProperties
public static Properties getOpenBravoProperties()
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
Reads the Openbravo.properties file, initializes the Dal layer and flags that the Dal layer is running in a web container.- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- See Also:
DalLayerInitializer
,OBPropertiesProvider
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-