de.agilecoders.wicket.webjars.collectors
Class ClasspathAssetPathCollector
java.lang.Object
de.agilecoders.wicket.webjars.collectors.ClasspathAssetPathCollector
- All Implemented Interfaces:
- AssetPathCollector
public class ClasspathAssetPathCollector
- extends Object
- implements AssetPathCollector
A collector that searches for assets in the classpath, only in
IWebjarsSettings.webjarsPath(), usually in META-INF/resources/webjars/**.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathAssetPathCollector
public ClasspathAssetPathCollector()
accept
public boolean accept(URL url)
- Description copied from interface:
AssetPathCollector
- whether this collector supports given url (especially protocol)
- Specified by:
accept in interface AssetPathCollector
- Parameters:
url - the url to webjars asset
- Returns:
- true, if given protocol is accepted
collect
public Collection<String> collect(URL url,
Pattern filterExpr)
- Description copied from interface:
AssetPathCollector
- collects all webjars assets on given url.
- Specified by:
collect in interface AssetPathCollector
- Parameters:
url - the path to webjars assetsfilterExpr - a filter that must be applied on all found assets.
- Returns:
- a collection of webjars assets on given
url that matches given filterExpr
Copyright © 2016 agilecoders.de. All Rights Reserved.