public class ConfigManager extends Object
This class manages the initialization of each web application that uses Faces.
| Modifier and Type | Field and Description |
|---|---|
static String |
INJECTION_PROVIDER_KEY
The initialization time FacesContext scoped key under which the InjectionProvider is stored.
|
| Constructor and Description |
|---|
ConfigManager() |
| Modifier and Type | Method and Description |
|---|---|
static ConfigManager |
createInstance(jakarta.servlet.ServletContext servletContext) |
void |
destroy(jakarta.servlet.ServletContext servletContext,
jakarta.faces.context.FacesContext facesContext)
This method will remove any information about the application.
|
static Map<Class<? extends Annotation>,Set<Class<?>>> |
getAnnotatedClasses(jakarta.faces.context.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) |
public static final String INJECTION_PROVIDER_KEY
public static ConfigManager createInstance(jakarta.servlet.ServletContext servletContext)
public static ConfigManager getInstance(jakarta.servlet.ServletContext servletContext)
ConfigManager instancepublic static Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(jakarta.faces.context.FacesContext ctx)
public static void removeInstance(jakarta.servlet.ServletContext servletContext)
public void initialize(jakarta.servlet.ServletContext servletContext,
InitFacesContext facesContext)
This method bootstraps Faces based on the parsed configuration resources.
servletContext - the ServletContext for the application that requires initializationpublic boolean hasBeenInitialized(jakarta.servlet.ServletContext servletContext)
servletContext - the ServletContext for the application in questiontrue if this application has already been initialized, otherwise returns fasepublic void destroy(jakarta.servlet.ServletContext servletContext,
jakarta.faces.context.FacesContext facesContext)
facesContext - the FacesContext for the application that needs to be removedservletContext - the ServletContext for the application that needs to be removedCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.