java.lang.Object
com.sun.faces.application.WebappLifecycleListener
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification that the servlet context is about to be shut down.void
Notification that the web application initialization process is starting.void
The request is about to go out of scope of the web application.void
The request is about to come into scope of the web application.void
sessionCreated
(HttpSessionEvent event) Notification that a session has been created.void
sessionDestroyed
(HttpSessionEvent event) Notification that a session is about to be invalidated.
-
Constructor Details
-
WebappLifecycleListener
public WebappLifecycleListener() -
WebappLifecycleListener
-
-
Method Details
-
requestInitialized
The request is about to come into scope of the web application.- Parameters:
event
- the notification event
-
requestDestroyed
The request is about to go out of scope of the web application.- Parameters:
event
- the notification event
-
sessionCreated
Notification that a session has been created.- Parameters:
event
- the notification event
-
sessionDestroyed
Notification that a session is about to be invalidated.- Parameters:
event
- the notification event
-
contextInitialized
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.- Parameters:
event
- the notification event
-
contextDestroyed
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.- Parameters:
event
- the nofication event
-
getActiveSessions
-