de.agilecoders.wicket.webjars.settings
Class WebjarsSettings
java.lang.Object
de.agilecoders.wicket.webjars.settings.WebjarsSettings
- All Implemented Interfaces:
- IWebjarsSettings
- Direct Known Subclasses:
- WebSphereWebjarsSettings
public class WebjarsSettings
- extends Object
- implements IWebjarsSettings
default IWebjarsSettings implementation.
- Author:
- miha
WebjarsSettings
public WebjarsSettings()
- Construct.
resourceStreamProvider
public ResourceStreamProvider resourceStreamProvider()
- Specified by:
resourceStreamProvider in interface IWebjarsSettings
- Returns:
ResourceStreamProvider to use to load resources
assetPathCollectors
public AssetPathCollector[] assetPathCollectors()
- Specified by:
assetPathCollectors in interface IWebjarsSettings
- Returns:
- a set of
AssetPathCollector instances to use to find
resources
webjarsPackage
public String webjarsPackage()
- Specified by:
webjarsPackage in interface IWebjarsSettings
- Returns:
- the webjars package path (e.g. "META-INF.resources.webjars")
webjarsPath
public String webjarsPath()
- Specified by:
webjarsPath in interface IWebjarsSettings
- Returns:
- the path where all webjars are stored (e.g. "META-INF/resources/webjars")
classLoaders
public ClassLoader[] classLoaders()
- Specified by:
classLoaders in interface IWebjarsSettings
- Returns:
- classloaders to use
resourcePattern
public Pattern resourcePattern()
- Specified by:
resourcePattern in interface IWebjarsSettings
- Returns:
- the pattern to filter accepted webjars resources
webjarsPathPattern
public Pattern webjarsPathPattern()
- Specified by:
webjarsPathPattern in interface IWebjarsSettings
- Returns:
- the full path pattern. The pattern must contain 3 groups: prefix, version, filename
recentVersionPlaceHolder
public String recentVersionPlaceHolder()
- Specified by:
recentVersionPlaceHolder in interface IWebjarsSettings
- Returns:
- placeholder for recent version (e.g. current)
readFromCacheTimeout
public org.apache.wicket.util.time.Duration readFromCacheTimeout()
- Specified by:
readFromCacheTimeout in interface IWebjarsSettings
- Returns:
- timeout which is used when reading from cache (Future.get(timeout))
useCdnResources
public boolean useCdnResources()
- Specified by:
useCdnResources in interface IWebjarsSettings
- Returns:
- true, if the resources for the webjars should be loaded from a CDN network
cdnUrl
public String cdnUrl()
- Specified by:
cdnUrl in interface IWebjarsSettings
- Returns:
- base URL of the webjars CDN
readFromCacheTimeout
public WebjarsSettings readFromCacheTimeout(org.apache.wicket.util.time.Duration readFromCacheTimeout)
recentVersionPlaceHolder
public WebjarsSettings recentVersionPlaceHolder(String recentVersionPlaceHolder)
resourcePattern
public WebjarsSettings resourcePattern(Pattern resourcePattern)
webjarsPath
public WebjarsSettings webjarsPath(String webjarsPath)
webjarsPackage
public WebjarsSettings webjarsPackage(String webjarsPackage)
resourceStreamProvider
public WebjarsSettings resourceStreamProvider(ResourceStreamProvider resourceStreamProvider)
assetPathCollectors
public WebjarsSettings assetPathCollectors(AssetPathCollector... assetPathCollectors)
useCdnResources
public WebjarsSettings useCdnResources(boolean useCdnResources)
cdnUrl
public WebjarsSettings cdnUrl(String cdnUrl)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2016 agilecoders.de. All Rights Reserved.