com.liferay.faces.util.client
Class ScriptsEncoderFactory

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

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

Author:
Neil Griffin

Constructor Summary
ScriptsEncoderFactory()
           
 
Method Summary
abstract  ScriptsEncoder getScriptsEncoder()
          Returns a stateless, thread-safe singleton instance of ScriptsEncoder.
static ScriptsEncoder getScriptsEncoderInstance()
          Deprecated. Call getScriptsEncoderInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of ScriptsEncoder from the ScriptsEncoderFactory found by the FactoryExtensionFinder. ScriptsEncoder is a stateless, thread-safe (and potentially singleton) because it is designed to be used by a Renderer, which is stateless and thread-safe singleton.

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

ScriptsEncoderFactory

public ScriptsEncoderFactory()
Method Detail

getScriptsEncoderInstance

@Deprecated
public static ScriptsEncoder getScriptsEncoderInstance()
Deprecated. Call getScriptsEncoderInstance(ExternalContext) instead.

Returns a stateless, thread-safe singleton instance of ScriptsEncoder from the ScriptsEncoderFactory found by the FactoryExtensionFinder. ScriptsEncoder is a stateless, thread-safe (and potentially singleton) because it is designed to be used by a Renderer, which is stateless and thread-safe singleton.


getScriptsEncoderInstance

public static ScriptsEncoder getScriptsEncoderInstance(javax.faces.context.ExternalContext externalContext)
Returns a stateless, thread-safe singleton instance of ScriptsEncoder from the ScriptsEncoderFactory found by the FactoryExtensionFinder. ScriptsEncoder is a stateless, thread-safe (and potentially singleton) because it is designed to be used by a Renderer, which is stateless and 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

getScriptsEncoder

public abstract ScriptsEncoder getScriptsEncoder()
Returns a stateless, thread-safe singleton instance of ScriptsEncoder. ScriptsEncoder 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 ScriptsEncoderFactory getWrapped()
Returns the wrapped factory instance if this factory decorates another. Otherwise, this method returns null.

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


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