com.liferay.faces.util.render
Class FacesURLEncoderFactory

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

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

Author:
Neil Griffin

Constructor Summary
FacesURLEncoderFactory()
           
 
Method Summary
abstract  FacesURLEncoder getFacesURLEncoder()
          Returns a stateless, thread-safe singleton instance of FacesURLEncoder.
static FacesURLEncoder getFacesURLEncoderInstance()
          Deprecated. Call getFacesURLEncoderInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of FacesURLEncoder from the FacesURLEncoderFactory found by the FactoryExtensionFinder. FacesURLEncoder is a stateless, thread-safe singleton because it is designed to be used by a Renderer, which is a stateless, thread-safe singleton.

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

FacesURLEncoderFactory

public FacesURLEncoderFactory()
Method Detail

getFacesURLEncoderInstance

@Deprecated
public static FacesURLEncoder getFacesURLEncoderInstance()
Deprecated. Call getFacesURLEncoderInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of FacesURLEncoder from the FacesURLEncoderFactory found by the FactoryExtensionFinder. FacesURLEncoder is a stateless, thread-safe singleton because it is designed to be used by a Renderer, which is a stateless, thread-safe singleton.


getFacesURLEncoderInstance

public static FacesURLEncoder getFacesURLEncoderInstance(javax.faces.context.ExternalContext externalContext)
Returns a stateless, thread-safe singleton instance of FacesURLEncoder from the FacesURLEncoderFactory found by the FactoryExtensionFinder. FacesURLEncoder is a stateless, thread-safe singleton because it is designed to be used by a Renderer, which is a stateless, thread-safe singleton.

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

getFacesURLEncoder

public abstract FacesURLEncoder getFacesURLEncoder()
Returns a stateless, thread-safe singleton instance of FacesURLEncoder. FacesURLEncoder is a stateless, thread-safe singleton because it is designed to be used by a Renderer, which is stateless and thread-safe singleton.


getWrapped

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

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


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