Package jakarta.faces
Class FactoryFinder
- java.lang.Object
-
- jakarta.faces.FactoryFinder
-
public final class FactoryFinder extends Object
see Javadoc of Faces Specification
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_FACTORYstatic StringCLIENT_WINDOW_FACTORYstatic StringEXCEPTION_HANDLER_FACTORYstatic StringEXTERNAL_CONTEXT_FACTORYstatic StringFACELET_CACHE_FACTORYstatic StringFACES_CONTEXT_FACTORYstatic StringFLASH_FACTORYstatic StringFLOW_HANDLER_FACTORYstatic StringLIFECYCLE_FACTORYstatic StringPARTIAL_VIEW_CONTEXT_FACTORYstatic StringRENDER_KIT_FACTORYstatic StringSEARCH_EXPRESSION_CONTEXT_FACTORYstatic StringTAG_HANDLER_DELEGATE_FACTORYstatic StringVIEW_DECLARATION_LANGUAGE_FACTORYstatic StringVISIT_CONTEXT_FACTORY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 voidreleaseFactories()static voidsetFactory(String factoryName, String implName)
-
-
-
Field Detail
-
APPLICATION_FACTORY
public static final String APPLICATION_FACTORY
- See Also:
- Constant Field Values
-
EXCEPTION_HANDLER_FACTORY
public static final String EXCEPTION_HANDLER_FACTORY
- See Also:
- Constant Field Values
-
EXTERNAL_CONTEXT_FACTORY
public static final String EXTERNAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
FACES_CONTEXT_FACTORY
public static final String FACES_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
LIFECYCLE_FACTORY
public static final String LIFECYCLE_FACTORY
- See Also:
- Constant Field Values
-
PARTIAL_VIEW_CONTEXT_FACTORY
public static final String PARTIAL_VIEW_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
RENDER_KIT_FACTORY
public static final String RENDER_KIT_FACTORY
- See Also:
- Constant Field Values
-
TAG_HANDLER_DELEGATE_FACTORY
public static final String TAG_HANDLER_DELEGATE_FACTORY
- See Also:
- Constant Field Values
-
VIEW_DECLARATION_LANGUAGE_FACTORY
public static final String VIEW_DECLARATION_LANGUAGE_FACTORY
- See Also:
- Constant Field Values
-
VISIT_CONTEXT_FACTORY
public static final String VISIT_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
FACELET_CACHE_FACTORY
public static final String FACELET_CACHE_FACTORY
- See Also:
- Constant Field Values
-
FLASH_FACTORY
public static final String FLASH_FACTORY
- See Also:
- Constant Field Values
-
FLOW_HANDLER_FACTORY
public static final String FLOW_HANDLER_FACTORY
- See Also:
- Constant Field Values
-
CLIENT_WINDOW_FACTORY
public static final String CLIENT_WINDOW_FACTORY
- See Also:
- Constant Field Values
-
SEARCH_EXPRESSION_CONTEXT_FACTORY
public static final String SEARCH_EXPRESSION_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFactory
public static Object getFactory(String factoryName) throws FacesException
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 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 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- iffactorynamedoes not identify a standard JavaServer Faces factory nameIllegalStateException- if there is no configured factory implementation class for the specified factory nameNullPointerException- iffactorynameis null
-
releaseFactories
public static void releaseFactories() throws FacesException- Throws:
FacesException
-
-