Package com.sun.faces.config
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
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
FacesServlet
has not been explicitly mapped, then add mappings *.xhtml, /faces, *.jsf, and *.faces for the FacesServlet.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FACES_PACKAGE_PREFIX
static String
MOJARRA_PACKAGE_PREFIX
static String
MOJARRA_TEST_PACKAGE_PREFIX
-
Constructor Summary
Constructors Constructor Description FacesInitializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAnnotatedClasses(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext)
void
onStartup(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext)
-
-
-
Field Detail
-
FACES_PACKAGE_PREFIX
public static final String FACES_PACKAGE_PREFIX
- See Also:
- Constant Field Values
-
MOJARRA_PACKAGE_PREFIX
public static final String MOJARRA_PACKAGE_PREFIX
- See Also:
- Constant Field Values
-
MOJARRA_TEST_PACKAGE_PREFIX
public static final String MOJARRA_TEST_PACKAGE_PREFIX
- See Also:
- Constant Field Values
-
-