de.agilecoders.wicket.webjars.collectors
Class ClasspathAssetPathCollector

java.lang.Object
  extended by 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/**.


Constructor Summary
ClasspathAssetPathCollector()
           
 
Method Summary
 boolean accept(URL url)
          whether this collector supports given url (especially protocol)
 Collection<String> collect(URL url, Pattern filterExpr)
          collects all webjars assets on given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathAssetPathCollector

public ClasspathAssetPathCollector()
Method Detail

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 assets
filterExpr - 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.