com.esri.adf.web.util
Class ADFServletContextListener
java.lang.Object
com.esri.adf.web.util.ADFServletContextListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
- public class ADFServletContextListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
The ADFServletContextListener initializes a WebApplication object and sets it as an attribute on the ServletContext.
When the ServletContext is destroyed, it destroys the associated WebApplication and attempts to clean up all server hosted objects in the current thread.
This class must be registered as a listener-class (in the web.xml file) for the web application.
|
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Destroys the associated WebApplication and releases all server references in this thread. |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Creates a WebApplication object and sets it as an attribute in this event's ServletContext. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_DIRECTORY_PARAM
public static final java.lang.String CACHE_DIRECTORY_PARAM
- See Also:
- Constant Field Values
LOG_LEVEL_PARAM
public static final java.lang.String LOG_LEVEL_PARAM
- See Also:
- Constant Field Values
APPLY_LOG_LEVEL_TO_ALL_HANDLERS_PARAM
public static final java.lang.String APPLY_LOG_LEVEL_TO_ALL_HANDLERS_PARAM
- See Also:
- Constant Field Values
ADFServletContextListener
public ADFServletContextListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Creates a
WebApplication object and sets it as an attribute in this event's ServletContext.
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
- Parameters:
event - the servlet context event
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Destroys the associated
WebApplication and releases all server references in this thread.
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
- Parameters:
event - the servlet context event