org.apache.jetspeed.decoration.validators
Class ClasspathResourceValidator

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

public class ClasspathResourceValidator
extends Object
implements org.apache.jetspeed.decoration.ResourceValidator

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

Author:
Scott T. Weaver

Field Summary
private  ClassLoader classLoader
           
 
Constructor Summary
ClasspathResourceValidator()
           
ClasspathResourceValidator(ClassLoader classLoader)
           
 
Method Summary
 boolean resourceExists(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

private ClassLoader classLoader
Constructor Detail

ClasspathResourceValidator

public ClasspathResourceValidator(ClassLoader classLoader)

ClasspathResourceValidator

public ClasspathResourceValidator()
Method Detail

resourceExists

public boolean resourceExists(String path)
Specified by:
resourceExists in interface org.apache.jetspeed.decoration.ResourceValidator


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