public class FacesContextFactoryImpl extends FacesContextFactory
Constructor and Description |
---|
FacesContextFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
FacesContext |
getFacesContext(Object sc,
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. |
getWrapped
public FacesContext getFacesContext(Object sc, Object request, Object response, Lifecycle lifecycle) throws FacesException
FacesContextFactory
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.
The implementation must call
ExternalContextFactory.getExternalContext(java.lang.Object, java.lang.Object, java.lang.Object)
to produce the
ExternalContext
for the FacesContext
instance.
The default implementation must call
ExceptionHandlerFactory.getExceptionHandler()
and make it
so the return from that method is what gets returned from a call
to FacesContext.getExceptionHandler()
on the returned
FacesContext
instance.
The default implementation must call
ClientWindowFactory.getClientWindow(javax.faces.context.FacesContext)
and make it
so the return from that method is what gets returned from a call
to ExternalContext.getClientWindow()
on the returned
ExternalContext
instance.
getFacesContext
in class FacesContextFactory
sc
- In Jakarta Servlet environments, the
ServletContext
that is associated with this web
applicationrequest
- In Jakarta Servlet environments, the
ServletRequest
that is to be processedresponse
- In Jakarta Servlet environments, the
ServletResponse
that is to be processedlifecycle
- The Lifecycle
instance being used
to process this requestFacesContext
.FacesException
- if a FacesContext
cannot be
constructed for the specified parametersComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.