public class WebjarsResourceFinder extends Object implements org.apache.wicket.util.file.IResourceFinder
| Constructor and Description |
|---|
WebjarsResourceFinder(IWebjarsSettings settings)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.apache.wicket.util.resource.IResourceStream |
find(Class<?> clazz,
String pathName)
Looks for a given path name along the webjars root path
|
int |
hashCode() |
protected WebJarAssetLocator |
newLocator() |
protected org.apache.wicket.util.resource.IResourceStream |
newResourceStream(String webjarsPath)
creates a new
IResourceStream for given resource path with should be loaded by given
class loader. |
String |
recentVersionOf(String partialPath) |
public WebjarsResourceFinder(IWebjarsSettings settings)
settings - the webjars settings to useprotected WebJarAssetLocator newLocator()
public String recentVersionOf(String partialPath)
partialPath - the path to detect version forpublic org.apache.wicket.util.resource.IResourceStream find(Class<?> clazz, String pathName)
find in interface org.apache.wicket.util.file.IResourceFinderclazz - The class requesting the resource streampathName - The filename with possible pathprotected org.apache.wicket.util.resource.IResourceStream newResourceStream(String webjarsPath)
IResourceStream for given resource path with should be loaded by given
class loader.webjarsPath - The resource to loadIResourceStream instance that represents the content of given resource path or
null if resource wasn't foundCopyright © 2014 agilecoders.de. All Rights Reserved.