com.liferay.faces.util.context
Class FacesRequestContextFactory

java.lang.Object
  extended by com.liferay.faces.util.context.FacesRequestContextFactory
All Implemented Interfaces:
javax.faces.FacesWrapper<FacesRequestContextFactory>

public abstract class FacesRequestContextFactory
extends Object
implements javax.faces.FacesWrapper<FacesRequestContextFactory>

Author:
Kyle Stiemann

Constructor Summary
FacesRequestContextFactory()
           
 
Method Summary
abstract  FacesRequestContext getFacesRequestContext()
          Returns a ThreadLocal singleton instance of FacesRequestContext.
static FacesRequestContext getFacesRequestContextInstance()
          Deprecated. Call 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.

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesRequestContextFactory

public FacesRequestContextFactory()
Method Detail

getFacesRequestContextInstance

@Deprecated
public static FacesRequestContext getFacesRequestContextInstance()
Deprecated. Call 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.


getFacesRequestContextInstance

public static FacesRequestContext getFacesRequestContextInstance(javax.faces.context.ExternalContext externalContext)
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.

Parameters:
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.
Since:
3.1, 2.1, 1.1

getFacesRequestContext

public abstract FacesRequestContext getFacesRequestContext()
Returns a 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.


getWrapped

public abstract FacesRequestContextFactory getWrapped()
Returns the wrapped factory instance if this factory decorates another. Otherwise, this method returns null.

Specified by:
getWrapped in interface javax.faces.FacesWrapper<FacesRequestContextFactory>


Copyright © 2017 Liferay, Inc.. All rights reserved.