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.
|
static String |
WEB_INF_MARKER
Name of the attribute added by ParseTask to indicate a
Document instance as a representation of
/WEB-INF/faces-config.xml . |
Constructor and Description |
---|
ConfigManager() |
Modifier and Type | Method and Description |
---|---|
static ConfigManager |
createInstance(javax.servlet.ServletContext sc) |
void |
destroy(javax.servlet.ServletContext sc)
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 sc) |
boolean |
hasBeenInitialized(javax.servlet.ServletContext sc) |
void |
initialize(javax.servlet.ServletContext sc)
This method bootstraps JSF based on the parsed configuration resources.
|
static void |
removeInstance(javax.servlet.ServletContext sc) |
public static final String INJECTION_PROVIDER_KEY
public static final String WEB_INF_MARKER
Document
instance as a representation of
/WEB-INF/faces-config.xml
.public static ConfigManager getInstance(javax.servlet.ServletContext sc)
ConfigManager
instancepublic static ConfigManager createInstance(javax.servlet.ServletContext sc)
public static void removeInstance(javax.servlet.ServletContext sc)
public void initialize(javax.servlet.ServletContext sc)
This method bootstraps JSF based on the parsed configuration resources.
sc
- the ServletContext
for the application that
requires initializationpublic void destroy(javax.servlet.ServletContext sc)
This method will remove any information about the application.
sc
- the ServletContext
for the application that
needs to be removedpublic boolean hasBeenInitialized(javax.servlet.ServletContext sc)
sc
- the ServletContext
for the application in questiontrue
if this application has already been initialized,
otherwise returns fasepublic static Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(javax.faces.context.FacesContext ctx)
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.