- java.lang.Object
-
- org.omnifaces.cdi.eager.EagerBeansWebListener
-
- All Implemented Interfaces:
HttpSessionListener
,ServletRequestListener
,EventListener
public class EagerBeansWebListener extends Object implements HttpSessionListener, ServletRequestListener
A web listener that instantiates eager session beans and request/view beans by request URI. This is auto-registered by
EagerBeansRepository.instantiateApplicationScopedAndRegisterListenerIfNecessary(jakarta.servlet.ServletContext)
when any eager session beans or request/view beans by request URI are available.- Since:
- 2.0
- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description EagerBeansWebListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
requestDestroyed(ServletRequestEvent event)
void
requestInitialized(ServletRequestEvent event)
void
sessionCreated(HttpSessionEvent event)
void
sessionDestroyed(HttpSessionEvent event)
-
-
-
Method Detail
-
sessionCreated
public void sessionCreated(HttpSessionEvent event)
- Specified by:
sessionCreated
in interfaceHttpSessionListener
-
requestInitialized
public void requestInitialized(ServletRequestEvent event)
- Specified by:
requestInitialized
in interfaceServletRequestListener
-
requestDestroyed
public void requestDestroyed(ServletRequestEvent event)
- Specified by:
requestDestroyed
in interfaceServletRequestListener
-
sessionDestroyed
public void sessionDestroyed(HttpSessionEvent event)
- Specified by:
sessionDestroyed
in interfaceHttpSessionListener
-
-