wicket.util.resource.locator
Class ResourceFinderResourceStreamLocator

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

public final 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
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

ResourceFinderResourceStreamLocator

public ResourceFinderResourceStreamLocator(IResourceFinder finder)
Constructor

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