wicket.util.resource.locator
Class ClassLoaderResourceStreamLocator

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

public final class ClassLoaderResourceStreamLocator
extends AbstractResourceStreamLocator

IResourceStreamLocator implementation that locates resources using a class loader.

Author:
Juergen Donnerstag, Jonathan Locke

Constructor Summary
ClassLoaderResourceStreamLocator()
          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

ClassLoaderResourceStreamLocator

public ClassLoaderResourceStreamLocator()
Constructor

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-2006 Wicket developers. All Rights Reserved.