|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetFactory
A service which creates an asset. In some cases, the asset is selected based on the Resource (typically of the component or page specification).
Method Summary | |
---|---|
IAsset |
createAsset(org.apache.hivemind.Resource resource,
org.apache.hivemind.Location location)
Creates a new asset based on a known resource. |
IAsset |
createAsset(org.apache.hivemind.Resource baseResource,
java.lang.String path,
java.util.Locale locale,
org.apache.hivemind.Location location)
Creates a new asset. |
Method Detail |
---|
IAsset createAsset(org.apache.hivemind.Resource baseResource, java.lang.String path, java.util.Locale locale, org.apache.hivemind.Location location)
baseResource
- the base resource from which an asset path may be calculated. Each type of asset
is linked to a particular implemenation of Resource
, and generates a
corresponding implementation of IAsset
.path
- the path relative to the resource (if no leading slash), or an absolute path
within the domain of the asset type (i.e, within the classpath, or within the web
application).locale
- the desired locale of the asset; the closest match will be used.location
- the location to be associated with the returned asset.
org.apache.hivemind.ApplicationRuntimeException
- if no matching asset may be found.IAsset createAsset(org.apache.hivemind.Resource resource, org.apache.hivemind.Location location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |