Class 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.
    See Also:
    • Constructor Detail

      • DalContextListener

        public DalContextListener()
    • 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 file, initializes the Dal layer and flags that the Dal layer is running in a web container.
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        See Also:
        DalLayerInitializer, OBPropertiesProvider
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener