de.agilecoders.wicket.webjars.collectors
Class FileAssetPathCollector

java.lang.Object
  extended by de.agilecoders.wicket.webjars.collectors.ProtocolAwareAssetPathCollector
      extended by de.agilecoders.wicket.webjars.collectors.FileAssetPathCollector
All Implemented Interfaces:
AssetPathCollector

public class FileAssetPathCollector
extends ProtocolAwareAssetPathCollector

A FileAssetPathCollector searches webjars on disk in a special directory.

Author:
miha

Constructor Summary
FileAssetPathCollector(String pathPrefix)
          Construct.
 
Method Summary
 Collection<String> collect(URL url, Pattern filterExpr)
          collects all webjars assets on given url.
 
Methods inherited from class de.agilecoders.wicket.webjars.collectors.ProtocolAwareAssetPathCollector
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAssetPathCollector

public FileAssetPathCollector(String pathPrefix)
Construct.

Parameters:
pathPrefix - the path where to look for resources
Method Detail

collect

public Collection<String> collect(URL url,
                                  Pattern filterExpr)
Description copied from interface: AssetPathCollector
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.