|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.rave.web.ui.appbase.servlet.LifecycleListener
public class LifecycleListener
LifecycleListener implements the lifecycle startup
and shutdown calls (init() and destroy()) for
subclasses of AbstractApplicationBean, AbstractSessionBean,
AbstractRequestBean, AbstractPageBean, and
AbstractFragmentBean.
It must be registered with the servlet container as a listener,
through an entry in either the /WEB-INF/web.xml resource
or a tag library descriptor included in the web application.
| Constructor Summary | |
|---|---|
LifecycleListener()
Create a new lifecycle listener. |
|
| Method Summary | |
|---|---|
void |
attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being added. |
void |
attributeAdded(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being added. |
void |
attributeAdded(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being added. |
void |
attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being removed. |
void |
attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being removed. |
void |
attributeRemoved(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being removed. |
void |
attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being replaced. |
void |
attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being replaced. |
void |
attributeReplaced(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being replaced. |
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Respond to a context destroyed event. |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Respond to a context created event. |
void |
requestDestroyed(javax.servlet.ServletRequestEvent event)
Respond to a request destroyed event. |
void |
requestInitialized(javax.servlet.ServletRequestEvent event)
Respond to a request created event. |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
Respond to a session created event. |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Respond to a session destroyed event. |
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
Respond to a "session did activate" event. |
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
Respond to a "session will passivate" event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleListener()
Create a new lifecycle listener.
| Method Detail |
|---|
public void contextInitialized(javax.servlet.ServletContextEvent event)
Respond to a context created event. No special processing is required.
contextInitialized in interface javax.servlet.ServletContextListenerevent - Event to be processedpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
Respond to a context destroyed event. Causes any application
scope attribute that implements AbstractApplicationBean
to be removed, triggering an attributeRemoved() event.
contextDestroyed in interface javax.servlet.ServletContextListenerevent - Event to be processedpublic void attributeAdded(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being added. If the
value is an AbstractApplicationBean, call its
init() method.
attributeAdded in interface javax.servlet.ServletContextAttributeListenerevent - Event to be processedpublic void attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being replaced.
If the old value was an AbstractApplicationBean, call
its destroy() method. If the new value is an
AbstractApplicationBean, call its init()
method.
attributeReplaced in interface javax.servlet.ServletContextAttributeListenerevent - Event to be processedpublic void attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
Respond to an application scope attribute being removed.
If the old value was an AbstractApplicationBean, call
its destroy() method.
attributeRemoved in interface javax.servlet.ServletContextAttributeListenerevent - Event to be processedpublic void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Respond to a session created event. No special processing is required.
sessionCreated in interface javax.servlet.http.HttpSessionListenerevent - Event to be processedpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Respond to a session destroyed event. Causes any session
scope attribute that implements AbstractSessionBean
to be removed, triggering an attributeRemoved() event.
sessionDestroyed in interface javax.servlet.http.HttpSessionListenerevent - Event to be processedpublic void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
Respond to a "session will passivate" event. Notify all session
scope attributes that are AbstractSessionBeans.
sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListenerevent - Event to be processedpublic void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
Respond to a "session did activate" event. Notify all session
scope attributes that are AbstractSessionBeans.
sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListenerevent - Event to be processedpublic void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being added. If the
value is an AbstractSessionBean, call its
init() method.
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListenerevent - Event to be processedpublic void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being replaced.
Provided that the old and new values are not the same object,
if the old value was an AbstractSessionBean, call
its destroy() method; if the new value is an
AbstractSessionBean, call its init()
method. No-op if the old and new values are the same object.
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListenerevent - Event to be processedpublic void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
Respond to a session scope attribute being removed.
If the old value was an AbstractSessionBean, call
its destroy() method.
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListenerevent - Event to be processedpublic void requestInitialized(javax.servlet.ServletRequestEvent event)
Respond to a request created event. No special processing is required.
requestInitialized in interface javax.servlet.ServletRequestListenerevent - Event to be processedpublic void requestDestroyed(javax.servlet.ServletRequestEvent event)
Respond to a request destroyed event. Causes any request
scope attribute that implements AbstractRequestBean,
AbstractPageBean,
or AbstractFragmentBean to be removed, triggering an
attributeRemoved() event.
requestDestroyed in interface javax.servlet.ServletRequestListenerevent - Event to be processedpublic void attributeAdded(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being added. If the
value is an AccountPageBean, AbstractRequestBean,
or AbstractFragmentBean, call its init() method.
attributeAdded in interface javax.servlet.ServletRequestAttributeListenerevent - Event to be processedpublic void attributeReplaced(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being replaced.
If the old value was an AbstractPageBean,
AbstractRequestBean or AbstractFragmentBean,
call its destroy() method. If the new value is an
AbstractPageBean, AbstractRequestBean or
AbstractFragmentBean, call its init() method.
attributeReplaced in interface javax.servlet.ServletRequestAttributeListenerevent - Event to be processedpublic void attributeRemoved(javax.servlet.ServletRequestAttributeEvent event)
Respond to a request scope attribute being removed.
If the old value was an AbstractPageBean,
AbstractRequestBean or AbstractFragmentBean,
call its destroy() method.
attributeRemoved in interface javax.servlet.ServletRequestAttributeListenerevent - Event to be processed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||