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 StringINJECTION_PROVIDER_KEYThe initialization time FacesContext scoped key under which the InjectionProvider is stored.
-
Constructor Summary
Constructors Constructor Description ConfigManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigManagercreateInstance(jakarta.servlet.ServletContext servletContext)voiddestroy(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 ConfigManagergetInstance(jakarta.servlet.ServletContext servletContext)booleanhasBeenInitialized(jakarta.servlet.ServletContext servletContext)voidinitialize(jakarta.servlet.ServletContext servletContext, InitFacesContext facesContext)This method bootstraps Faces based on the parsed configuration resources.static voidremoveInstance(jakarta.servlet.ServletContext servletContext)
-
-
-
Field Detail
-
INJECTION_PROVIDER_KEY
public static final String INJECTION_PROVIDER_KEY
The initialization time FacesContext scoped key under which the InjectionProvider is stored.
-
-
Method Detail
-
createInstance
public static ConfigManager createInstance(jakarta.servlet.ServletContext servletContext)
-
getInstance
public static ConfigManager getInstance(jakarta.servlet.ServletContext servletContext)
- Parameters:
servletContext- the involved servlet context- Returns:
- a
ConfigManagerinstance
-
getAnnotatedClasses
public static Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(FacesContext ctx)
- Parameters:
ctx- the involved faces context- 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- theServletContextfor the application that requires initializationfacesContext- the involved initialization faces context
-
hasBeenInitialized
public boolean hasBeenInitialized(jakarta.servlet.ServletContext servletContext)
- Parameters:
servletContext- theServletContextfor the application in question- Returns:
trueif this application has already been initialized, otherwise returnsfase
-
destroy
public void destroy(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)This method will remove any information about the application.- Parameters:
facesContext- theFacesContextfor the application that needs to be removedservletContext- theServletContextfor the application that needs to be removed
-
-