public interface AssetSource
IAsset
instance for a particular asset path. The
path may have a prefix that indicates its type, or it may be relative to some existing resource.Modifier and Type | Method and Description |
---|---|
IAsset |
findAsset(org.apache.hivemind.Resource base,
java.lang.String path,
java.util.Locale locale,
org.apache.hivemind.Location location)
Finds an asset relative to some existing resource (typically, a page, component or library
specification).
|
IAsset findAsset(org.apache.hivemind.Resource base, java.lang.String path, java.util.Locale locale, org.apache.hivemind.Location location)
base
- the base resource used for resolving the assetpath
- the path relative to the base resource; alternately, the path may include a prefix
that defines a domain (such as "classpath:" or "context:") in which case the base
resource is ignored and the resource resolved within that domainlocale
- used to find a localized version of the asset, may be null to indicate no
localizationlocation
- used to report errors (such as missing resources)org.apache.hivemind.ApplicationRuntimeException
- if the asset does not exist