com.liferay.faces.util.application
Class ResourceVerifierFactory

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

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

This class provides the contract for a factory that can create instances of ResourceVerifier. It implements FacesWrapper in order to follow the standard factory delegation pattern found in the Faces API. If a concrete implementation of this class has a one-arg constructor and the type of the argument is ResourceVerifierFactory then the constructor will be called with the next factory instance in the delegation chain.

Author:
Kyle Stiemann

Constructor Summary
ResourceVerifierFactory()
           
 
Method Summary
abstract  ResourceVerifier getResourceVerifier()
          Returns a stateless, thread-safe singleton instance of ResourceVerifier.
static ResourceVerifier getResourceVerifierInstance()
          Deprecated. Call getResourceVerifierInstance(ExternalContext) instead.

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

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

ResourceVerifierFactory

public ResourceVerifierFactory()
Method Detail

getResourceVerifierInstance

@Deprecated
public static ResourceVerifier getResourceVerifierInstance()
Deprecated. Call getResourceVerifierInstance(ExternalContext) instead.

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


getResourceVerifierInstance

public static ResourceVerifier getResourceVerifierInstance(javax.faces.context.ExternalContext externalContext)
Returns a stateless, thread-safe singleton instance of ResourceVerifier from the ResourceVerifierFactory found by the FactoryExtensionFinder. ResourceVerifier 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

getResourceVerifier

public abstract ResourceVerifier getResourceVerifier()
Returns a stateless, thread-safe singleton instance of ResourceVerifier. The returned ResourceVerifier is the first member of a delegation chain. ResourceVerifier is a stateless, thread-safe (and potentially singleton) because it is designed to be used by a Renderer, which is a stateless, thread-safe singleton.


getWrapped

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

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


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