org.apache.jetspeed.decoration.validators
Class ClasspathResourceValidator

java.lang.Object
  extended by org.apache.jetspeed.decoration.validators.ClasspathResourceValidator
All Implemented Interfaces:
ResourceValidator

public class ClasspathResourceValidator
extends java.lang.Object
implements ResourceValidator

This implementation uses ClassLoader.getResource() to validate the existence of a resource.

Author:
Scott T. Weaver

Constructor Summary
ClasspathResourceValidator()
           
ClasspathResourceValidator(java.lang.ClassLoader classLoader)
           
 
Method Summary
 boolean resourceExists(java.lang.String path)
          Validates whether or not a resource exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathResourceValidator

public ClasspathResourceValidator(java.lang.ClassLoader classLoader)

ClasspathResourceValidator

public ClasspathResourceValidator()
Method Detail

resourceExists

public boolean resourceExists(java.lang.String path)
Description copied from interface: ResourceValidator
Validates whether or not a resource exists.

Specified by:
resourceExists in interface ResourceValidator
Parameters:
path - Path to verify.
Returns:
true if a resource exists at the path specified, otherwise returns false.


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.