Central location for web application lifecycle events.
The main purpose of this class is detect when we should be invoking methods marked with the
@PreDestroy annotation.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private WebappLifecycleListener. | |
| private ApplicationAssociate | |
| private static final Logger | |
| private ServletContext |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | attributeRemoved(ServletRequestAttributeEvent
the notification event event)Notification that an existing attribute has been removed from the servlet request. |
| public void | attributeRemoved(HttpSessionBindingEvent
the nofication event event)Notification that an attribute has been removed from a session. |
| public void | attributeRemoved(ServletContextAttributeEvent
the notification event event)Notification that an existing attribute has been removed from the servlet context. |
| public void | attributeReplaced(ServletRequestAttributeEvent
the notification event event)Notification that an attribute was replaced on the servlet request. |
| public void | attributeReplaced(HttpSessionBindingEvent
the notification event event)Notification that an attribute has been replaced in a session. |
| public void | attributeReplaced(ServletContextAttributeEvent
the notification event event)Notification that an attribute on the servlet context has been replaced. |
| public void | contextDestroyed(ServletContextEvent
the nofication event event)Notification that the servlet context is about to be shut down. |
| public void | contextInitialized(ServletContextEvent
the notification event event)Notification that the web application initialization process is starting. |
| public List | |
| private ApplicationAssociate | |
| private void | |
| public void | requestDestroyed(ServletRequestEvent
the notification event event)The request is about to go out of scope of the web application. |
| public void | requestInitialized(ServletRequestEvent
the notification event event)The request is about to come into scope of the web application. |
| public void | sessionCreated(HttpSessionEvent
the notification event event)Notfication that a session has been created. |
| public void | sessionDestroyed(HttpSessionEvent
the notification event event)Notification that a session is about to be invalidated. |
| private void | syncSessionScopedBeans(ServletRequest
the current request)ServletRequestThis method ensures that session scoped managed beans will be synchronized properly in a clustered environment. |
| activeSessions | back to summary |
|---|---|
| private WebappLifecycleListener. | |
| applicationAssociate | back to summary |
|---|---|
| private ApplicationAssociate applicationAssociate | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| servletContext | back to summary |
|---|---|
| private ServletContext servletContext | |
| WebappLifecycleListener | back to summary |
|---|---|
| public WebappLifecycleListener() | |
| WebappLifecycleListener | back to summary |
|---|---|
| public WebappLifecycleListener(ServletContext servletContext) | |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(ServletRequestAttributeEvent event) Notification that an existing attribute has been removed from the servlet request. Called after the attribute is removed.
| |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(HttpSessionBindingEvent event) Notification that an attribute has been removed from a session. Called after the attribute is removed.
| |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(ServletContextAttributeEvent event) Notification that an existing attribute has been removed from the servlet context. Called after the attribute is removed.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(ServletRequestAttributeEvent event) Notification that an attribute was replaced on the servlet request. Called after the attribute is replaced.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(HttpSessionBindingEvent event) Notification that an attribute has been replaced in a session. Called after the attribute is replaced.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(ServletContextAttributeEvent event) Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.
| |
| contextDestroyed | back to summary |
|---|---|
| public void contextDestroyed(ServletContextEvent event) Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.
| |
| contextInitialized | back to summary |
|---|---|
| public void contextInitialized(ServletContextEvent event) Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.
| |
| getActiveSessions | back to summary |
|---|---|
| public List | |
| getAssociate | back to summary |
|---|---|
| private ApplicationAssociate getAssociate() | |
| handleAttributeEvent | back to summary |
|---|---|
| private void handleAttributeEvent(String beanName, Object bean, ELUtils. | |
| requestDestroyed | back to summary |
|---|---|
| public void requestDestroyed(ServletRequestEvent event) The request is about to go out of scope of the web application.
| |
| requestInitialized | back to summary |
|---|---|
| public void requestInitialized(ServletRequestEvent event) The request is about to come into scope of the web application.
| |
| sessionCreated | back to summary |
|---|---|
| public void sessionCreated(HttpSessionEvent event) Notfication that a session has been created.
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent event) Notification that a session is about to be invalidated.
| |
| syncSessionScopedBeans | back to summary |
|---|---|
| private void syncSessionScopedBeans(ServletRequest request) This method ensures that session scoped managed beans will be synchronized properly in a clustered environment.
| |
| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized List | |
| public synchronized void |
| activeSessions | back to summary |
|---|---|
| private List<HttpSession> activeSessions | |
| ActiveSessions | back to summary |
|---|---|
| public ActiveSessions() | |
| add | back to summary |
|---|---|
| public synchronized void add(HttpSession hs) | |
| get | back to summary |
|---|---|
| public synchronized List | |
| remove | back to summary |
|---|---|
| public synchronized void remove(HttpSession hs) | |