wicket.util.resource.locator
Class PathResourceStreamLocator

java.lang.Object
  extended by wicket.util.resource.locator.AbstractResourceStreamLocator
      extended by wicket.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
 IResourceStream locate(java.lang.Class clazz, 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

public IResourceStream locate(java.lang.Class clazz,
                              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:
clazz - The class requesting the resource
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(Class, java.lang.String)


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