org.omnifaces.facesviews
Class FacesViewsInitializerListener

java.lang.Object
  extended by org.omnifaces.eventlistener.DefaultServletContextListener
      extended by org.omnifaces.facesviews.FacesViewsInitializerListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

@WebListener
public class FacesViewsInitializerListener
extends DefaultServletContextListener

Convenience class for Servlet 3.0 users, which will map the FacesServlet to extensions found during scanning in FacesViewsInitializer. This part of the initialization is executed in a separate ServletContextListener, because the FacesServlet has to be available. This is not guaranteed to be the case in an ServletContainerInitializer.

For a guide on FacesViews, please see the package summary.

Author:
Arjan Tijms

Constructor Summary
FacesViewsInitializerListener()
           
 
Method Summary
 void contextInitialized(javax.servlet.ServletContextEvent context)
           
 
Methods inherited from class org.omnifaces.eventlistener.DefaultServletContextListener
contextDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesViewsInitializerListener

public FacesViewsInitializerListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent context)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Overrides:
contextInitialized in class DefaultServletContextListener