public final class FactoryFinder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_FACTORY |
static String |
CLIENT_WINDOW_FACTORY |
static String |
EXCEPTION_HANDLER_FACTORY |
static String |
EXTERNAL_CONTEXT_FACTORY |
static String |
FACELET_CACHE_FACTORY |
static String |
FACES_CONTEXT_FACTORY |
static String |
FLASH_FACTORY |
static String |
FLOW_HANDLER_FACTORY |
static String |
LIFECYCLE_FACTORY |
static String |
PARTIAL_VIEW_CONTEXT_FACTORY |
static String |
RENDER_KIT_FACTORY |
static String |
SEARCH_EXPRESSION_CONTEXT_FACTORY |
static String |
TAG_HANDLER_DELEGATE_FACTORY |
static String |
VIEW_DECLARATION_LANGUAGE_FACTORY |
static String |
VISIT_CONTEXT_FACTORY |
Modifier and Type | Method and Description |
---|---|
static 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 |
releaseFactories() |
static void |
setFactory(String factoryName,
String implName) |
public static final String APPLICATION_FACTORY
public static final String EXCEPTION_HANDLER_FACTORY
public static final String EXTERNAL_CONTEXT_FACTORY
public static final String FACES_CONTEXT_FACTORY
public static final String LIFECYCLE_FACTORY
public static final String PARTIAL_VIEW_CONTEXT_FACTORY
public static final String RENDER_KIT_FACTORY
public static final String TAG_HANDLER_DELEGATE_FACTORY
public static final String VIEW_DECLARATION_LANGUAGE_FACTORY
public static final String VISIT_CONTEXT_FACTORY
public static final String FACELET_CACHE_FACTORY
public static final String FLASH_FACTORY
public static final String FLOW_HANDLER_FACTORY
public static final String CLIENT_WINDOW_FACTORY
public static final String SEARCH_EXPRESSION_CONTEXT_FACTORY
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 JSF all implement the interface FacesWrapper
. If the returned
Object
is an implementation of one of the standard factories, it must be legal to cast it to an
instance of FacesWrapper
and call FacesWrapper.getWrapped()
on the instance.
factoryName
- Fully qualified name of the JavaServer Faces factory for which an implementation instance is requestedFacesException
- 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
- if factoryname
does not identify a standard JavaServer Faces factory nameIllegalStateException
- if there is no configured factory implementation class for the specified factory nameNullPointerException
- if factoryname
is nullpublic static void releaseFactories() throws FacesException
FacesException
Copyright © 2020 The Apache Software Foundation. All rights reserved.