Class FacesInitializer

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

public class FacesInitializer
extends Object
implements jakarta.servlet.ServletContainerInitializer
Adds mappings *.xhtml, /faces, *.jsf, and *.faces for the FacesServlet (if it hasn't already been mapped) if the following conditions are met:
  • The Set of classes passed to this initializer is not empty, or
  • /WEB-INF/faces-config.xml exists, or
  • A CDI enabled bean with qualifier FacesConfig can be obtained
  • Constructor Details

  • Method Details

    • onStartup

      public void onStartup​(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer
      Throws:
      jakarta.servlet.ServletException