wicket.util.resource.locator
Class PathResourceStreamLocator

java.lang.Object
  extended bywicket.util.resource.locator.AbstractResourceStreamLocator
      extended bywicket.util.resource.locator.PathResourceStreamLocator
All Implemented Interfaces:
IResourceStreamLocator

public final class PathResourceStreamLocator
extends AbstractResourceStreamLocator

IResourceStreamLocator implementation that locates resources along a filesystem search path.

Author:
Juergen Donnerstag, Jonathan Locke

Constructor Summary
PathResourceStreamLocator(Path searchPath)
          Constructor
 
Method Summary
protected  IResourceStream locate(java.lang.ClassLoader classLoader, java.lang.String path)
          Subclass implementation locates the resource at the given path.
 
Methods inherited from class wicket.util.resource.locator.AbstractResourceStreamLocator
locate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathResourceStreamLocator

public PathResourceStreamLocator(Path searchPath)
Constructor

Parameters:
searchPath - The path to search
Method Detail

locate

protected IResourceStream locate(java.lang.ClassLoader classLoader,
                                 java.lang.String path)
Description copied from class: AbstractResourceStreamLocator
Subclass implementation locates the resource at the given path. Different subclasses may take different approaches to the search.

Specified by:
locate in class AbstractResourceStreamLocator
Parameters:
classLoader - class loader
path - The complete path of the resource to locate. Separators must be forward slashes.
Returns:
The Resource, or null if not found.
See Also:
AbstractResourceStreamLocator.locate(java.lang.ClassLoader, java.lang.String)


Copyright © 2004-2005 Wicket developers. All Rights Reserved.