Top Fields Constructors Methods
com.sun.faces.context

public Class FacesContextFactoryImpl

extends FacesContextFactory
Class Inheritance
Static Imports
com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter.AlwaysPerformValidationWhenRequiredTrue, .WebConfiguration.BooleanWebContextInitParameter.EnableValidateWholeBean, .WebConfiguration.BooleanWebContextInitParameter.ForceAlwaysWriteFlashCookie, .WebConfiguration.BooleanWebContextInitParameter.PartialStateSaving, .WebConfiguration.BooleanWebContextInitParameter.ViewRootPhaseListenerQueuesException

Field Summary

Modifier and TypeField and Description
private final ExceptionHandlerFactory
private final ExternalContextFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FacesContext
getFacesContext(Object
In servlet environments, the ServletContext that is associated with this web application
sc
,
Object
In servlet environments, the ServletRequest that is to be processed
request
,
Object
In servlet environments, the ServletResponse that is to be processed
response
,
Lifecycle
The Lifecycle instance being used to process this request
lifecycle
)

Implements abstract javax.faces.context.FacesContextFactory.getFacesContext.

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.

private void
Inherited from javax.faces.context.FacesContextFactory:
getWrapped

Field Detail

exceptionHandlerFactoryback to summary
private final ExceptionHandlerFactory exceptionHandlerFactory
externalContextFactoryback to summary
private final ExternalContextFactory externalContextFactory

Constructor Detail

FacesContextFactoryImplback to summary
public FacesContextFactoryImpl()

Method Detail

getFacesContextback to summary
public FacesContext getFacesContext(Object sc, Object request, Object response, Lifecycle lifecycle) throws FacesException

Implements abstract javax.faces.context.FacesContextFactory.getFacesContext.

Doc from javax.faces.context.FacesContextFactory.getFacesContext.

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 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 javax.faces.lifecycle.ClientWindowFactory#getClientWindow and make it so the return from that method is what gets returned from a call to ExternalContext#getClientWindow() on the returned ExternalContext instance.

Parameters
sc:Object

In servlet environments, the ServletContext that is associated with this web application

request:Object

In servlet environments, the ServletRequest that is to be processed

response:Object

In servlet environments, the ServletResponse that is to be processed

lifecycle:Lifecycle

The Lifecycle instance being used to process this request

Returns:FacesContext

the instance of FacesContext.

Annotations
@Override
Exceptions
FacesException:
if a FacesContext cannot be constructed for the specified parameters
savePerRequestInitParamsback to summary
private void savePerRequestInitParams(FacesContext context, WebConfiguration webConfig)