com.liferay.faces.util.application
Class ResourceValidatorFactory

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

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

Author:
Neil Griffin

Constructor Summary
ResourceValidatorFactory()
           
 
Method Summary
abstract  ResourceValidator getResourceValidator()
          Returns a stateless, thread-safe singleton instance of ResourceValidator.
static ResourceValidator getResourceValidatorInstance()
          Deprecated. Call getResourceValidatorInstance(ExternalContext) instead.

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

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

ResourceValidatorFactory

public ResourceValidatorFactory()
Method Detail

getResourceValidatorInstance

@Deprecated
public static ResourceValidator getResourceValidatorInstance()
Deprecated. Call getResourceValidatorInstance(ExternalContext) instead.

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


getResourceValidatorInstance

public static ResourceValidator getResourceValidatorInstance(javax.faces.context.ExternalContext externalContext)
Returns a stateless, thread-safe singleton instance of ResourceValidator from the ResourceValidatorFactory found by the FactoryExtensionFinder. ResourceValidator is a stateless, thread-safe singleton because it is designed to be used by a ResourceHandler, 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

getResourceValidator

public abstract ResourceValidator getResourceValidator()
Returns a stateless, thread-safe singleton instance of ResourceValidator. ResourceValidator is stateless, thread-safe singleton because it is designed to be used by a ResourceHandler, which is a stateless, thread-safe singleton.


getWrapped

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

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


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