|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object listeners.ContextListener
public final class ContextListener
Example listener for context-related application events, which were introduced in the 2.3 version of the Servlet API. This listener merely documents the occurrence of such events in the application log associated with our servlet context.
Constructor Summary | |
---|---|
ContextListener()
|
Method Summary | |
---|---|
void |
attributeAdded(ServletContextAttributeEvent event)
Record the fact that a servlet context attribute was added. |
void |
attributeRemoved(ServletContextAttributeEvent event)
Record the fact that a servlet context attribute was removed. |
void |
attributeReplaced(ServletContextAttributeEvent event)
Record the fact that a servlet context attribute was replaced. |
void |
contextDestroyed(ServletContextEvent event)
Record the fact that this web application has been destroyed. |
void |
contextInitialized(ServletContextEvent event)
Record the fact that this web application has been initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextListener()
Method Detail |
---|
public void attributeAdded(ServletContextAttributeEvent event)
attributeAdded
in interface ServletContextAttributeListener
event
- The servlet context attribute eventpublic void attributeRemoved(ServletContextAttributeEvent event)
attributeRemoved
in interface ServletContextAttributeListener
event
- The servlet context attribute eventpublic void attributeReplaced(ServletContextAttributeEvent event)
attributeReplaced
in interface ServletContextAttributeListener
event
- The servlet context attribute eventpublic void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
event
- The servlet context eventpublic void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
event
- The servlet context event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |