Package jakarta.faces
Class FactoryFinder
java.lang.Object
jakarta.faces.FactoryFinder
see Javadoc of Faces Specification
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getFactory
(String factoryName) Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class, based on the discovery algorithm described in the class description.static void
static void
setFactory
(String factoryName, String implName)
-
Field Details
-
APPLICATION_FACTORY
- See Also:
-
EXCEPTION_HANDLER_FACTORY
- See Also:
-
EXTERNAL_CONTEXT_FACTORY
- See Also:
-
FACES_CONTEXT_FACTORY
- See Also:
-
LIFECYCLE_FACTORY
- See Also:
-
PARTIAL_VIEW_CONTEXT_FACTORY
- See Also:
-
RENDER_KIT_FACTORY
- See Also:
-
TAG_HANDLER_DELEGATE_FACTORY
- See Also:
-
VIEW_DECLARATION_LANGUAGE_FACTORY
- See Also:
-
VISIT_CONTEXT_FACTORY
- See Also:
-
FACELET_CACHE_FACTORY
- See Also:
-
FLASH_FACTORY
- See Also:
-
FLOW_HANDLER_FACTORY
- See Also:
-
CLIENT_WINDOW_FACTORY
- See Also:
-
SEARCH_EXPRESSION_CONTEXT_FACTORY
- See Also:
-
-
Method Details
-
getFactory
Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class, based on the discovery algorithm described in the class description.
The standard factories and wrappers in Faces all implement the interface
FacesWrapper
. If the returnedObject
is an implementation of one of the standard factories, it must be legal to cast it to an instance ofFacesWrapper
and callFacesWrapper.getWrapped()
on the instance.- Parameters:
factoryName
- Fully qualified name of the JavaServer Faces factory for which an implementation instance is requested- Returns:
- A per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class
- Throws:
FacesException
- if the web application class loader cannot be identifiedFacesException
- if an instance of the configured factory implementation class cannot be loadedFacesException
- if an instance of the configured factory implementation class cannot be instantiatedIllegalArgumentException
- iffactoryname
does not identify a standard JavaServer Faces factory nameIllegalStateException
- if there is no configured factory implementation class for the specified factory nameNullPointerException
- iffactoryname
is null
-
setFactory
-
releaseFactories
- Throws:
FacesException
-