echoxul.view.locator
Class JavaResourceLocator

java.lang.Object
  extended byechoxul.view.locator.JavaResourceLocator
All Implemented Interfaces:
ResourceLocator

public class JavaResourceLocator
extends java.lang.Object
implements ResourceLocator

A ResourceLocator that loads resources from the Java classpath. It can be configured to use a specific ClassLoader. If none is given, then the ClassLoader which loaded this class is used.

Author:
Terry Laurenzo

Constructor Summary
JavaResourceLocator()
           
JavaResourceLocator(java.lang.ClassLoader classLoader)
           
 
Method Summary
 org.xml.sax.InputSource findResource(java.lang.String path)
          Convert a path to an InputSource in an implementation specific way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaResourceLocator

public JavaResourceLocator(java.lang.ClassLoader classLoader)

JavaResourceLocator

public JavaResourceLocator()
Method Detail

findResource

public org.xml.sax.InputSource findResource(java.lang.String path)
Description copied from interface: ResourceLocator
Convert a path to an InputSource in an implementation specific way. Must return null if the path cannot be resolved by this instance.

Specified by:
findResource in interface ResourceLocator
Parameters:
path -
Returns:
An InputSource or null if not found.
See Also:
ResourceLocator.findResource(java.lang.String)


Copyright © 2004 Terry Laurenzo. All Rights Reserved.