public abstract class FacesRequestContextFactory extends Object implements javax.faces.FacesWrapper<FacesRequestContextFactory>
Constructor and Description |
---|
FacesRequestContextFactory() |
Modifier and Type | Method and Description |
---|---|
abstract FacesRequestContext |
getFacesRequestContext()
Returns a
ThreadLocal singleton instance of FacesRequestContext . |
static FacesRequestContext |
getFacesRequestContextInstance()
Deprecated.
Call
getFacesRequestContextInstance(ExternalContext) instead.
Returns a |
static FacesRequestContext |
getFacesRequestContextInstance(javax.faces.context.ExternalContext externalContext)
Returns a
ThreadLocal singleton instance of FacesRequestContext from the FacesRequestContextFactory found by the FactoryExtensionFinder . |
abstract FacesRequestContextFactory |
getWrapped()
Returns the wrapped factory instance if this factory decorates another.
|
@Deprecated public static FacesRequestContext getFacesRequestContextInstance()
getFacesRequestContextInstance(ExternalContext)
instead.
Returns a ThreadLocal
singleton instance of FacesRequestContext
from the FacesRequestContextFactory
found by the FactoryExtensionFinder
. The returned instance is
designed to be used during execution of a request thread, so it is not guaranteed to be Serializable
.
public static FacesRequestContext getFacesRequestContextInstance(javax.faces.context.ExternalContext externalContext)
ThreadLocal
singleton instance of FacesRequestContext
from the FacesRequestContextFactory
found by the FactoryExtensionFinder
. The returned instance is designed to be
used during execution of a request thread, so it is not guaranteed to be Serializable
.externalContext
- The external context associated with the current faces context. It is needed in order
for the FactoryExtensionFinder
to be able to find the factory.public abstract FacesRequestContext getFacesRequestContext()
ThreadLocal
singleton instance of FacesRequestContext
. The returned instance is
designed to be used during execution of a request thread, so it is not guaranteed to be Serializable
.public abstract FacesRequestContextFactory getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<FacesRequestContextFactory>
Copyright © 2018 Liferay, Inc.. All rights reserved.