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 | Field and Description |
|---|---|
| private final Set | |
| private ApplicationAssociate | |
| private ServletContext |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 boolean | |
| private boolean | |
| private boolean | |
| 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)Notification that a session has been created. |
| public void | sessionDestroyed(HttpSessionEvent
the notification event event)Notification that a session is about to be invalidated. |
| activeSessions | back to summary |
|---|---|
| private final Set<HttpSession> activeSessions | |
| applicationAssociate | back to summary |
|---|---|
| private ApplicationAssociate applicationAssociate | |
| servletContext | back to summary |
|---|---|
| private ServletContext servletContext | |
| WebappLifecycleListener | back to summary |
|---|---|
| public WebappLifecycleListener() | |
| WebappLifecycleListener | back to summary |
|---|---|
| public WebappLifecycleListener(ServletContext servletContext) | |
| 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() | |
| haveProtectedViews | back to summary |
|---|---|
| private boolean haveProtectedViews(ApplicationAssociate associate) | |
| isDevModeEnabled | back to summary |
|---|---|
| private boolean isDevModeEnabled(ApplicationAssociate associate) | |
| isDistributable | back to summary |
|---|---|
| private boolean isDistributable(ServletRequestEvent event) | |
| 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) Notification that a session has been created.
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent event) Notification that a session is about to be invalidated.
| |