| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Map | FACTORY_CLASSES
Map of Class instances for the our factory names. |
| private static final String[] | FACTORY_NAMES
The set of JavaServer Faces factory classes for which the factory discovery mechanism is supported. |
| private static final String | |
| private final ReentrantReadWriteLock | |
| private static final Logger | |
| private final Map | |
| private ServletContextFacesContextFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| private void | |
| private ClassLoader | |
| pack-priv Collection | |
| pack-priv Object | |
| private Class | |
| private Object | getImplementationInstance(ClassLoader
Class loader for the web application that will
be loading the implementation class classLoader, String factoryName, List<E> A List of implementations for a given
factory class. implementations)Load and return an instance of the specified implementation class using the following algorithm. |
| private Object | getImplGivenPreviousImpl(ClassLoader
the ClassLoader from which to load the class classLoader, String the fully qualified class name of the factory. factoryName, String the fully qualified class name of a class that
implements the factory. implName, Object if non- previousImpl)null, the factory
instance to be passed to the constructor of the new factory.Implement the decorator pattern for the factory implementation. |
| private List | getImplNameFromServices(ClassLoader classLoader, String factoryName)
Perform the logic to get the implementation class for the
second step of |
| pack-priv InjectionProvider | |
| pack-priv void | |
| private void |
| factories | back to summary |
|---|---|
| private final Map<String, Object> factories | |
| FACTORY_CLASSES | back to summary |
|---|---|
| private static final Map<String, Class<T>> FACTORY_CLASSES Map of Class instances for the our factory names. | |
| FACTORY_NAMES | back to summary |
|---|---|
| private static final String[] FACTORY_NAMES The set of JavaServer Faces factory classes for which the factory discovery mechanism is supported. The entries in this list must be alphabetically ordered according to the entire string of the *value* of each of the literals, not just the last part of the literal! | |
| INJECTION_PROVIDER_KEY | back to summary |
|---|---|
| private static final String INJECTION_PROVIDER_KEY | |
| lock | back to summary |
|---|---|
| private final ReentrantReadWriteLock lock | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| savedFactoryNames | back to summary |
|---|---|
| private final Map<String, List<String>> savedFactoryNames | |
| servletContextFinder | back to summary |
|---|---|
| private ServletContextFacesContextFactory servletContextFinder | |
| FactoryFinderInstance | back to summary |
|---|---|
| pack-priv FactoryFinderInstance() | |
| FactoryFinderInstance | back to summary |
|---|---|
| pack-priv FactoryFinderInstance(FactoryFinderInstance toCopy) | |
| addFactory | back to summary |
|---|---|
| pack-priv void addFactory(String factoryName, String implementation) | |
| clearInjectionProvider | back to summary |
|---|---|
| pack-priv void clearInjectionProvider() | |
| copyInjectionProviderFromFacesContext | back to summary |
|---|---|
| private void copyInjectionProviderFromFacesContext() | |
| getClassLoader | back to summary |
|---|---|
| private ClassLoader getClassLoader() throws FacesException | |
| getFactories | back to summary |
|---|---|
| pack-priv Collection | |
| getFactory | back to summary |
|---|---|
| pack-priv Object getFactory(String factoryName) | |
| getFactoryClass | back to summary |
|---|---|
private Class
| |
| getImplementationInstance | back to summary |
|---|---|
| private Object getImplementationInstance(ClassLoader classLoader, String factoryName, List<E> implementations) throws FacesException Load and return an instance of the specified implementation class using the following algorithm.
| |
| getImplGivenPreviousImpl | back to summary |
|---|---|
| private Object getImplGivenPreviousImpl(ClassLoader classLoader, String factoryName, String implName, Object previousImpl) Implement the decorator pattern for the factory implementation.
If
Otherwise, we just instantiate and return
| |
| getImplNameFromServices | back to summary |
|---|---|
| private List Perform the logic to get the implementation class for the
second step of | |
| getInjectionProvider | back to summary |
|---|---|
| pack-priv InjectionProvider getInjectionProvider() | |
| releaseFactories | back to summary |
|---|---|
| pack-priv void releaseFactories() | |
| validateFactoryName | back to summary |
|---|---|
| private void validateFactoryName(String factoryName) | |