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,
FacesContext facesContext)
This method will remove any information about the application.
|
static Map<Class<? extends Annotation>,Set<Class<?>>> |
getAnnotatedClasses(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(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, FacesContext facesContext)
facesContext
- the FacesContext
for the application that needs to be removedservletContext
- the ServletContext
for the application that needs to be removedComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.