public class BeginWebBeansListener extends java.lang.Object implements ServletContextListener, ServletRequestListener, HttpSessionListener, HttpSessionActivationListener
Modifier and Type | Field and Description |
---|---|
protected WebBeansContext |
webBeansContext
Manages the container lifecycle
|
Constructor and Description |
---|
BeginWebBeansListener(WebBeansContext webBeansContext)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent servletContextEvent)
Receives notification that the ServletContext is about to be
shut down.
|
void |
contextInitialized(ServletContextEvent servletContextEvent)
Receives notification that the web application initialization
process is starting.
|
void |
requestDestroyed(ServletRequestEvent event)
Receives notification that a ServletRequest is about to go out
of scope of the web application.
|
void |
requestInitialized(ServletRequestEvent event)
Receives notification that a ServletRequest is about to come
into scope of the web application.
|
void |
sessionCreated(HttpSessionEvent event)
Receives notification that a session has been created.
|
void |
sessionDestroyed(HttpSessionEvent event)
Receives notification that a session is about to be invalidated.
|
void |
sessionDidActivate(HttpSessionEvent event)
Notification that the session has just been activated.
|
void |
sessionWillPassivate(HttpSessionEvent event)
Notification that the session is about to be passivated.
|
protected WebBeansContext webBeansContext
public BeginWebBeansListener(WebBeansContext webBeansContext)
webBeansContext
- the OWB contextpublic void requestDestroyed(ServletRequestEvent event)
requestDestroyed
in interface ServletRequestListener
event
- the ServletRequestEvent containing the ServletRequest
and the ServletContext representing the web applicationpublic void requestInitialized(ServletRequestEvent event)
requestInitialized
in interface ServletRequestListener
event
- the ServletRequestEvent containing the ServletRequest
and the ServletContext representing the web applicationpublic void sessionCreated(HttpSessionEvent event)
sessionCreated
in interface HttpSessionListener
event
- the HttpSessionEvent containing the sessionpublic void sessionDestroyed(HttpSessionEvent event)
sessionDestroyed
in interface HttpSessionListener
event
- the HttpSessionEvent containing the sessionpublic void sessionWillPassivate(HttpSessionEvent event)
HttpSessionActivationListener
sessionWillPassivate
in interface HttpSessionActivationListener
event
- the HttpSessionEvent
indicating the passivation
of the sessionpublic void sessionDidActivate(HttpSessionEvent event)
HttpSessionActivationListener
sessionDidActivate
in interface HttpSessionActivationListener
event
- the HttpSessionEvent
indicating the activation
of the sessionpublic void contextInitialized(ServletContextEvent servletContextEvent)
ServletContextListener
All ServletContextListeners are notified of context initialization before any filters or servlets in the web application are initialized.
contextInitialized
in interface ServletContextListener
servletContextEvent
- the ServletContextEvent containing the ServletContext
that is being initializedpublic void contextDestroyed(ServletContextEvent servletContextEvent)
ServletContextListener
All servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction.
contextDestroyed
in interface ServletContextListener
servletContextEvent
- the ServletContextEvent containing the ServletContext
that is being destroyed