|
Préférences
Moteurs de recherche
|
||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.context
|
Constructor Summary | |
---|---|
FacesContextFactory()
|
Method Summary | |
---|---|
abstract FacesContext |
getFacesContext(Object context,
Object request,
Object response,
Lifecycle lifecycle)
Create (if needed) and return a FacesContext instance
that is initialized for the processing of the specified request
and response objects, utilizing the specified Lifecycle
instance, for this web application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesContextFactory()
Method Detail |
---|
public abstract FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException
Create (if needed) and return a FacesContext
instance
that is initialized for the processing of the specified request
and response objects, utilizing the specified Lifecycle
instance, for this web application.
The implementation of this method must ensure that calls to the
getCurrentInstance()
method of FacesContext
,
from the same thread that called this method, will return the same
FacesContext
instance until the release()
method is called on that instance.
context
- In servlet environments, the
ServletContext
that is associated with this web
applicationrequest
- In servlet environments, the
ServletRequest
that is to be processedresponse
- In servlet environments, the
ServletResponse
that is to be processedlifecycle
- The Lifecycle
instance being used
to process this request
FacesException
- if a FacesContext
cannot be
constructed for the specified parameters
NullPointerException
- if any of the parameters
are null