Package jakarta.faces
Class FactoryFinder
java.lang.Object
jakarta.faces.FactoryFinder
see Javadoc of Faces Specification
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectgetFactory(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 voidstatic voidsetFactory(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- 
getFactoryCreate (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 returnedObjectis an implementation of one of the standard factories, it must be legal to cast it to an instance ofFacesWrapperand 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 identified
- FacesException- if an instance of the configured factory implementation class cannot be loaded
- FacesException- if an instance of the configured factory implementation class cannot be instantiated
- IllegalArgumentException- if- factorynamedoes not identify a standard JavaServer Faces factory name
- IllegalStateException- if there is no configured factory implementation class for the specified factory name
- NullPointerException- if- factorynameis null
 
- 
setFactory
- 
releaseFactories- Throws:
- FacesException
 
 
-