com.liferay.faces.util.application
Class ResourceVerifierWrapper

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

public abstract class ResourceVerifierWrapper
extends Object
implements ResourceVerifier, javax.faces.FacesWrapper<ResourceVerifier>

Provides a simple implementation of ResourceVerifier that can be subclassed in order to decorate another instance of the same type.

Author:
Kyle Stiemann

Constructor Summary
ResourceVerifierWrapper()
           
 
Method Summary
 boolean isDependencySatisfied(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent componentResource)
          Determines whether or not a ResourceDependency represented by a UIComponent has already been satisfied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.FacesWrapper
getWrapped
 

Constructor Detail

ResourceVerifierWrapper

public ResourceVerifierWrapper()
Method Detail

isDependencySatisfied

public boolean isDependencySatisfied(javax.faces.context.FacesContext facesContext,
                                     javax.faces.component.UIComponent componentResource)
Description copied from interface: ResourceVerifier
Determines whether or not a ResourceDependency represented by a UIComponent has already been satisfied.

Since the ResourceVerifier utilizes the delegation pattern, if an implementation in the delegation chain determines that a resource dependency has been satisfied, then it returns true. Otherwise it will return the value from the next member in the delegation chain. The default implementation returns false assuming that a resource dependency has not already been satisfied and therefore needs to be rendered.

Specified by:
isDependencySatisfied in interface ResourceVerifier
Returns:
true when the resource dependency is already satisfied, otherwise false.
See Also:
ResourceVerifier.isDependencySatisfied(FacesContext, javax.faces.component.UIComponent)


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