wicket.util.resource.locator
Class ResourceFinderResourceStreamLocator

java.lang.Object
  extended by wicket.util.resource.locator.AbstractResourceStreamLocator
      extended by wicket.util.resource.locator.ResourceFinderResourceStreamLocator
All Implemented Interfaces:
IResourceStreamLocator

public class ResourceFinderResourceStreamLocator
extends AbstractResourceStreamLocator

IResourceStreamLocator implementation that locates resources along a filesystem search path.

Author:
Juergen Donnerstag, Jonathan Locke

Constructor Summary
ResourceFinderResourceStreamLocator(IResourceFinder finder)
          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

ResourceFinderResourceStreamLocator

public ResourceFinderResourceStreamLocator(IResourceFinder finder)
Constructor

Parameters:
finder - 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.