de.agilecoders.wicket.webjars.collectors
Class AssetsMap
java.lang.Object
de.agilecoders.wicket.webjars.collectors.AssetsMap
- All Implemented Interfaces:
- IAssetProvider, IRecentVersionProvider
public class AssetsMap
- extends Object
- implements IAssetProvider, IRecentVersionProvider
asset holder map.
- Author:
- miha
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetsMap
public AssetsMap(IWebjarsSettings settings)
- Construct.
- Parameters:
settings - the settings to use.
findRecentVersionFor
public String findRecentVersionFor(String path)
- Specified by:
findRecentVersionFor in interface IRecentVersionProvider
- Parameters:
path - the path to detect version for
- Returns:
- recent version
getFullPathIndex
public SortedMap<String,String> getFullPathIndex()
- Specified by:
getFullPathIndex in interface IAssetProvider
- Returns:
- the full path index map.
listAssets
public Set<String> listAssets(String folderPath)
- Description copied from interface:
IAssetProvider
- List assets within a folder.
- Specified by:
listAssets in interface IAssetProvider
- Parameters:
folderPath - the root path to the folder. Must begin with '/'.
- Returns:
- a set of folder paths that match.
Copyright © 2016 agilecoders.de. All Rights Reserved.