de.agilecoders.wicket.webjars.collectors
Class WebSphereClasspathAssetPathCollector

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

public class WebSphereClasspathAssetPathCollector
extends Object
implements AssetPathCollector

A collector that searches for assets in the classpath, only in IWebjarsSettings.webjarsPath(), usually in META-INF/resources/webjars/**. Make sure to add dependency on edu.emory.mathcs.util:emory-util-classloader to the classpath!

See Also:
WebSphereWebjarsSettings

Constructor Summary
WebSphereClasspathAssetPathCollector()
           
 
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

WebSphereClasspathAssetPathCollector

public WebSphereClasspathAssetPathCollector()
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.