|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces
|
Field Summary | |
---|---|
static String |
APPLICATION_FACTORY
The property name for the ApplicationFactory class name. |
static String |
FACES_CONTEXT_FACTORY
The property name for the FacesContextFactory class name. |
static String |
LIFECYCLE_FACTORY
The property name for the LifecycleFactory class name. |
static String |
RENDER_KIT_FACTORY
The property name for the RenderKitFactory class name. |
Method Summary | |
---|---|
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()
Release any references to factory instances associated with the class loader for the calling web application. |
static void |
setFactory(String factoryName,
String implName)
This method will store the argument factoryName/implName mapping in such a way that
getFactory(java.lang.String) will find this mapping when searching for a
match. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String APPLICATION_FACTORY
The property name for the
ApplicationFactory
class name.
public static final String FACES_CONTEXT_FACTORY
The property name for the
FacesContextFactory
class name.
public static final String LIFECYCLE_FACTORY
The property name for the
LifecycleFactory
class name.
public static final String RENDER_KIT_FACTORY
The property name for the
RenderKitFactory
class name.
Method Detail |
---|
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.
factoryName
- Fully qualified name of the JavaServer Faces factory
for which an implementation instance is requested
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 factoryName
does not
identify a standard JavaServer Faces factory name
IllegalStateException
- if there is no configured factory
implementation class for the specified factory name
NullPointerException
- if factoryname
is nullpublic static void setFactory(String factoryName, String implName)
This method will store the argument
factoryName/implName
mapping in such a way that
getFactory(java.lang.String)
will find this mapping when searching for a
match.
This method has no effect if getFactory()
has
already been called looking for a factory for this
factoryName
.
This method can be used by implementations to store a factory mapping while parsing the Faces configuration file
IllegalArgumentException
- if factoryName
does not
identify a standard JavaServer Faces factory name
NullPointerException
- if factoryname
is nullpublic static void releaseFactories() throws FacesException
Release any references to factory instances associated with the class loader for the calling web application. This method should be called as apart of web application shutdown in a container where the JavaServer Faces API classes are part of the container itself, rather than being included inside the web application.
FacesException
- if the web application class loader
cannot be identified