Package ru.vyarus.guicey.gsp.app.asset
Class AssetLookup.AssetLocation
java.lang.Object
ru.vyarus.guicey.gsp.app.asset.AssetLookup.AssetLocation
- Enclosing class:
- AssetLookup
Represent resolved asset location: actual classpath path (absolute) and target class loader (where resource
found). Object used to cover various situations: only target classpath path required or file itself.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetLocation(String path, ClassLoader loader, URL url) Create an asset location. -
Method Summary
-
Constructor Details
-
AssetLocation
Create an asset location.- Parameters:
path- local pathloader- asset loaderurl- target url
-
-
Method Details
-
getPath
- Returns:
- absolute asset classpath path
-
getLoader
- Returns:
- class loader containing asset
-
getUrl
- Returns:
- url to asset file
-