Class FacesInitializer

java.lang.Object
com.sun.faces.config.FacesInitializer
All Implemented Interfaces:
ServletContainerInitializer

public class FacesInitializer extends Object implements ServletContainerInitializer
Initializes Jakarta Faces if at least one of the following conditions is met:
  • The Set of classes passed to this initializer contains an user-defined Faces type, or
  • FacesServlet has been explicitly mapped ,or
  • /WEB-INF/faces-config.xml exists
If it is met, and the FacesServlet has not been explicitly mapped, then add mappings *.xhtml, /faces, *.jsf, and *.faces for the FacesServlet.