Class ClassPathResourceFinder
- java.lang.Object
-
- org.apache.wicket.core.util.resource.ClassPathResourceFinder
-
- All Implemented Interfaces:
IResourceFinder
public class ClassPathResourceFinder extends Object implements IResourceFinder
AnIResourceFinder
that looks in a folder in the classpath.- Author:
- Carl-Eric Menzel
-
-
Constructor Summary
Constructors Constructor Description ClassPathResourceFinder(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceStream
find(Class<?> clazz, String path)
Looks for a given pathname along this pathString
toString()
-
-
-
Constructor Detail
-
ClassPathResourceFinder
public ClassPathResourceFinder(String prefix)
- Parameters:
prefix
- The path prefix. May be null or empty to look in the classpath root.
-
-
Method Detail
-
find
public IResourceStream find(Class<?> clazz, String path)
Description copied from interface:IResourceFinder
Looks for a given pathname along this path- Specified by:
find
in interfaceIResourceFinder
- Parameters:
clazz
- The class requesting the resource streampath
- The filename with possible path- Returns:
- The resource stream
-
-