This class manages the initialization of each web application that uses JSF.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ANNOTATIONS_SCAN_TASK_KEY
The application-scoped key under which the Future responsible for annotation scanning is associated with. |
| private static final String | |
| private final List | |
| private final ConfigProcessor | faceletTaglibConfigProcessor
The chain of |
| private final List | facesConfigProviders
A List of resource providers that search for faces-config documents. |
| private final List | facesletsTagLibConfigProviders
A List of resource providers that search for faces-config documents. |
| private List | initializedContexts
Contains each |
| public static final String | INJECTION_PROVIDER_KEY
The initialization time FacesContext scoped key under which the InjectionProvider is stored. |
| private static final Logger | |
| private static final int | NUMBER_OF_TASK_THREADS
The |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if Facelets should be disabledconfiguration for this application webconfig, FacesConfigInfo object representing WEB-INF/faces-config.xml facesConfigInfo)Utility method to check if JSF 2.0 Facelets should be disabled. |
| private static ExecutorService | |
| public static ConfigManager | |
| public void | destroy(ServletContext
the servletContext, FacesContext ServletContext for the application that needs to be removedthe facesContext)FacesContext for the application that needs to be removedThis method will remove any information about the application. |
| private void | findAnnotations(DocumentInfo[] facesDocuments, InjectionProvider containerConnector, ServletContext servletContext, InitFacesContext context, ExecutorService executor)
Execute the Task responsible for finding annotation classes |
| public static Map | |
| private List | |
| private List | getConfigurationResourceProviders(List<ConfigurationResourceProvider> defaultProviders, ConfigurationResourceProviderFactory.
|
| private List | |
| private List | |
| public static ConfigManager | |
| private ThreadContext | |
| public boolean | Returns: true if this application has already been initialized, otherwise returns fasethe servletContext)ServletContext for the application in question
|
| public void | initialize(ServletContext
the servletContext, InitFacesContext facesContext)ServletContext for the application that
requires initializationThis method bootstraps JSF based on the parsed configuration resources. |
| private void | |
| private boolean | Returns: true if Facelets should be disabledconfiguration for this application webConfig, FacesConfigInfo object representing WEB-INF/faces-config.xml lastFacesConfigInfo)Utility method to check if JSF 2.0 Facelets should be disabled, but that doesn't perform the
check unless |
| pack-priv void | publishPostConfigEvent()
Publishes a |
| private void | pushTaskToContext(ServletContext sc, Future<Map<Class<? extends Annotation>, Set<Class<?>>>> scanTask)
Push the provided |
| private void | releaseFactories()
Calls through to |
| public static void | |
| private boolean |
| ANNOTATIONS_SCAN_TASK_KEY | back to summary |
|---|---|
| private static final String ANNOTATIONS_SCAN_TASK_KEY The application-scoped key under which the Future responsible for annotation scanning is associated with. | |
| CONFIG_MANAGER_INSTANCE_KEY | back to summary |
|---|---|
| private static final String CONFIG_MANAGER_INSTANCE_KEY | |
| configProcessors | back to summary |
|---|---|
| private final List<ConfigProcessor> configProcessors | |
| faceletTaglibConfigProcessor | back to summary |
|---|---|
| private final ConfigProcessor faceletTaglibConfigProcessor
The chain of | |
| facesConfigProviders | back to summary |
|---|---|
| private final List<ConfigurationResourceProvider> facesConfigProviders A List of resource providers that search for faces-config documents. By default, this contains a provider for the Mojarra, and two other providers to satisfy the requirements of the specification. | |
| facesletsTagLibConfigProviders | back to summary |
|---|---|
| private final List<ConfigurationResourceProvider> facesletsTagLibConfigProviders A List of resource providers that search for faces-config documents. By default, this contains a provider for the Mojarra, and one other providers to satisfy the requirements of the specification. | |
| initializedContexts | back to summary |
|---|---|
| private List<ServletContext> initializedContexts
Contains each | |
| INJECTION_PROVIDER_KEY | back to summary |
|---|---|
| public static final String INJECTION_PROVIDER_KEY The initialization time FacesContext scoped key under which the InjectionProvider is stored. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NUMBER_OF_TASK_THREADS | back to summary |
|---|---|
| private static final int NUMBER_OF_TASK_THREADS
The | |
| ConfigManager | back to summary |
|---|---|
| public ConfigManager() | |
| _isFaceletsDisabled | back to summary |
|---|---|
| private boolean _isFaceletsDisabled(WebConfiguration webconfig, FacesConfigInfo facesConfigInfo) Utility method to check if JSF 2.0 Facelets should be disabled. If it's not explicitly disabled by the context init parameter, then check the version of the WEB-INF/faces-config.xml document. If the version is less than 2.0, then override the default value for the context init parameter so that other parts of the system that use that config option will know it has been disabled. Note Since this method overrides a configuration value, it should
be called before *any* document parsing is performed the configuration
value may be queried by the
| |
| createExecutorService | back to summary |
|---|---|
| private static ExecutorService createExecutorService() Create a new | |
| createInstance | back to summary |
|---|---|
| public static ConfigManager createInstance(ServletContext servletContext) | |
| destroy | back to summary |
|---|---|
| public void destroy(ServletContext servletContext, FacesContext facesContext) This method will remove any information about the application.
| |
| findAnnotations | back to summary |
|---|---|
| private void findAnnotations(DocumentInfo[] facesDocuments, InjectionProvider containerConnector, ServletContext servletContext, InitFacesContext context, ExecutorService executor) Execute the Task responsible for finding annotation classes | |
| getAnnotatedClasses | back to summary |
|---|---|
public static Map
| |
| getConfigPopulators | back to summary |
|---|---|
| private List | |
| getConfigurationResourceProviders | back to summary |
|---|---|
| private List | |
| getFaceletConfigResourceProviders | back to summary |
|---|---|
| private List | |
| getFacesConfigResourceProviders | back to summary |
|---|---|
| private List | |
| getInstance | back to summary |
|---|---|
public static ConfigManager getInstance(ServletContext servletContext)
| |
| getThreadContext | back to summary |
|---|---|
| private ThreadContext getThreadContext(InjectionProvider containerConnector) | |
| hasBeenInitialized | back to summary |
|---|---|
public boolean hasBeenInitialized(ServletContext servletContext)
| |
| initialize | back to summary |
|---|---|
| public void initialize(ServletContext servletContext, InitFacesContext facesContext) This method bootstraps JSF based on the parsed configuration resources.
| |
| initializeConfigProcessers | back to summary |
|---|---|
| private void initializeConfigProcessers(ServletContext servletContext, FacesContext facesContext) | |
| isFaceletsDisabled | back to summary |
|---|---|
| private boolean isFaceletsDisabled(WebConfiguration webConfig, FacesConfigInfo lastFacesConfigInfo) Utility method to check if JSF 2.0 Facelets should be disabled, but that doesn't perform the
check unless
| |
| publishPostConfigEvent | back to summary |
|---|---|
| pack-priv void publishPostConfigEvent() Publishes a | |
| pushTaskToContext | back to summary |
|---|---|
| private void pushTaskToContext(ServletContext sc, Future<Map<Class<? extends Annotation>, Set<Class<?>>>> scanTask) Push the provided | |
| releaseFactories | back to summary |
|---|---|
| private void releaseFactories() Calls through to | |
| removeInstance | back to summary |
|---|---|
| public static void removeInstance(ServletContext servletContext) | |
| useThreads | back to summary |
|---|---|
| private boolean useThreads(ServletContext ctx) | |