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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsessionCreated(HttpSessionEvent event) voidsessionDestroyed(HttpSessionEvent event)
-
Constructor Details
-
EagerBeansWebListener
public EagerBeansWebListener()
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreatedin interfaceHttpSessionListener
-
requestInitialized
- Specified by:
requestInitializedin interfaceServletRequestListener
-
requestDestroyed
- Specified by:
requestDestroyedin interfaceServletRequestListener
-
sessionDestroyed
- Specified by:
sessionDestroyedin interfaceHttpSessionListener
-