This class manages the initialization of each web application that uses Faces.
| 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 final 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 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 | Returns: the results of the annotation scan taskthe involved faces context ctx)
|
| private List | |
| private List | getConfigurationResourceProviders(List<ConfigurationResourceProvider> defaultProviders, ConfigurationResourceProviderFactory.
|
| private List | |
| private List | |
| public static ConfigManager | Returns: aConfigManager instancethe involved servlet context servletContext)
|
| 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 ServletContext for the application that requires initializationthe involved initialization faces context facesContext)This method bootstraps Faces based on the parsed configuration resources. |
| private void | |
| pack-priv void | publishPostConfigEvent()
Publishes a |
| private void | pushTaskToContext(ServletContext servletContext, 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 final 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() | |
| 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 Faces based on the parsed configuration resources.
| |
| initializeConfigProcessors | back to summary |
|---|---|
| private void initializeConfigProcessors(ServletContext servletContext, FacesContext facesContext) | |
| publishPostConfigEvent | back to summary |
|---|---|
| pack-priv void publishPostConfigEvent() Publishes a | |
| pushTaskToContext | back to summary |
|---|---|
| private void pushTaskToContext(ServletContext servletContext, 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) | |