public class ConfigManager extends Object
This class manages the initialization of each web application that uses JSF.
| 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(javax.servlet.ServletContext servletContext) |
void |
destroy(javax.servlet.ServletContext servletContext,
javax.faces.context.FacesContext facesContext)
This method will remove any information about the application.
|
static Map<Class<? extends Annotation>,Set<Class<?>>> |
getAnnotatedClasses(javax.faces.context.FacesContext ctx) |
static ConfigManager |
getInstance(javax.servlet.ServletContext servletContext) |
boolean |
hasBeenInitialized(javax.servlet.ServletContext servletContext) |
void |
initialize(javax.servlet.ServletContext servletContext,
InitFacesContext facesContext)
This method bootstraps JSF based on the parsed configuration resources.
|
static void |
removeInstance(javax.servlet.ServletContext servletContext) |
public static final String INJECTION_PROVIDER_KEY
public static ConfigManager createInstance(javax.servlet.ServletContext servletContext)
public static ConfigManager getInstance(javax.servlet.ServletContext servletContext)
ConfigManager instancepublic static Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(javax.faces.context.FacesContext ctx)
public static void removeInstance(javax.servlet.ServletContext servletContext)
public void initialize(javax.servlet.ServletContext servletContext,
InitFacesContext facesContext)
This method bootstraps JSF based on the parsed configuration resources.
servletContext - the ServletContext for the application that
requires initializationpublic boolean hasBeenInitialized(javax.servlet.ServletContext servletContext)
servletContext - the ServletContext for the application in questiontrue if this application has already been initialized, otherwise returns fasepublic void destroy(javax.servlet.ServletContext servletContext,
javax.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–2020 JBoss by Red Hat. All rights reserved.