com.liferay.faces.util.context
Class FacesContextHelperFactory

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

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

Author:
Neil Griffin

Constructor Summary
FacesContextHelperFactory()
           
 
Method Summary
abstract  FacesContextHelper getFacesContextHelper()
          Returns a stateless, thread-safe singleton instance of FacesContextHelper.
static FacesContextHelper getFacesContextHelperInstance()
          Deprecated. Call getFacesContextHelperInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of FacesContextHelper from the FacesContextHelperFactory found by the FactoryExtensionFinder.

static FacesContextHelper getFacesContextHelperInstance(javax.faces.context.ExternalContext externalContext)
          Returns a stateless, thread-safe singleton instance of FacesContextHelper from the FacesContextHelperFactory found by the FactoryExtensionFinder.
abstract  FacesContextHelperFactory 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

FacesContextHelperFactory

public FacesContextHelperFactory()
Method Detail

getFacesContextHelperInstance

@Deprecated
public static FacesContextHelper getFacesContextHelperInstance()
Deprecated. Call getFacesContextHelperInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of FacesContextHelper from the FacesContextHelperFactory found by the FactoryExtensionFinder.


getFacesContextHelperInstance

public static FacesContextHelper getFacesContextHelperInstance(javax.faces.context.ExternalContext externalContext)
Returns a stateless, thread-safe singleton instance of FacesContextHelper from the FacesContextHelperFactory found by the FactoryExtensionFinder.

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

getFacesContextHelper

public abstract FacesContextHelper getFacesContextHelper()
Returns a stateless, thread-safe singleton instance of FacesContextHelper.


getWrapped

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

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


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