de.agilecoders.wicket.webjars.collectors
Interface AssetPathCollector

All Known Implementing Classes:
ClasspathAssetPathCollector, FileAssetPathCollector, JarAssetPathCollector, ProtocolAwareAssetPathCollector, VfsAssetPathCollector, WebSphereClasspathAssetPathCollector

public interface AssetPathCollector

An AssetPathCollector collects webjars assets from an url/classpath/disc and so on depending on the protocol that is used.

Author:
miha

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.
 

Method Detail

accept

boolean accept(URL url)
whether this collector supports given url (especially protocol)

Parameters:
url - the url to webjars asset
Returns:
true, if given protocol is accepted

collect

Collection<String> collect(URL url,
                           Pattern filterExpr)
collects all webjars assets on given url.

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.