@WebListener public class ApplicationListener extends DefaultServletContextListener
OmniFaces application listener. This runs when the servlet context is created. This performs the following tasks:
Cache provider and register its filter if necessary.
FacesViews mappings to FacesServlet if necessary.
ViewResourceHandler mapping to FacesServlet if necessary.
Eager application scoped beans and register EagerBeansWebListener if necessary.
GraphicImageBean beans in GraphicResource.
Socket endpoint if necessary.
This is invoked after ApplicationInitializer and before ApplicationProcessor.
If any exception is thrown, then the deployment will fail, unless the
context parameter is set to true, it will then merely log a WARNING line.
| Constructor and Description |
|---|
ApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextInitialized(ServletContextEvent event) |
contextDestroyedpublic void contextInitialized(ServletContextEvent event)
contextInitialized in interface ServletContextListenercontextInitialized in class DefaultServletContextListenerCopyright © 2012–2022 OmniFaces. All rights reserved.