Package com.sun.faces.config
Class ConfigManager
java.lang.Object
com.sun.faces.config.ConfigManager
public class ConfigManager extends Object
This class manages the initialization of each web application that uses Faces.
-
Field Summary
Fields Modifier and Type Field Description static String
INJECTION_PROVIDER_KEY
The initialization time FacesContext scoped key under which the InjectionProvider is stored. -
Constructor Summary
Constructors Constructor Description ConfigManager()
-
Method Summary
Modifier and Type Method Description static ConfigManager
createInstance(jakarta.servlet.ServletContext servletContext)
void
destroy(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)
This method will remove any information about the application.static Map<Class<? extends Annotation>,Set<Class<?>>>
getAnnotatedClasses(FacesContext ctx)
static ConfigManager
getInstance(jakarta.servlet.ServletContext servletContext)
boolean
hasBeenInitialized(jakarta.servlet.ServletContext servletContext)
void
initialize(jakarta.servlet.ServletContext servletContext, InitFacesContext facesContext)
This method bootstraps Faces based on the parsed configuration resources.static void
removeInstance(jakarta.servlet.ServletContext servletContext)
-
Field Details
-
INJECTION_PROVIDER_KEY
The initialization time FacesContext scoped key under which the InjectionProvider is stored.
-
-
Constructor Details
-
ConfigManager
public ConfigManager()
-
-
Method Details
-
createInstance
-
getInstance
- Returns:
- a
ConfigManager
instance
-
getAnnotatedClasses
public static Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(FacesContext ctx)- Returns:
- the results of the annotation scan task
-
removeInstance
public static void removeInstance(jakarta.servlet.ServletContext servletContext) -
initialize
public void initialize(jakarta.servlet.ServletContext servletContext, InitFacesContext facesContext)This method bootstraps Faces based on the parsed configuration resources.
- Parameters:
servletContext
- theServletContext
for the application that requires initialization
-
hasBeenInitialized
public boolean hasBeenInitialized(jakarta.servlet.ServletContext servletContext)- Parameters:
servletContext
- theServletContext
for the application in question- Returns:
true
if this application has already been initialized, otherwise returns fase
-
destroy
This method will remove any information about the application.- Parameters:
facesContext
- theFacesContext
for the application that needs to be removedservletContext
- theServletContext
for the application that needs to be removed
-