|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjuzu.asset.Asset
public abstract class Asset
Representation of an asset at runtime, an asset can be a reference or a value.
Asset references are a mere reference to an asset that will be managed by the server, for instance the jquery
asset reference an asset for which the developer does not have to provide details.
Asset values provide an explicit asset with a location and an URI that will be used to resolve fully the asset.
Nested Class Summary | |
---|---|
static class |
Asset.Id
An identified asset. |
static class |
Asset.Value
A valued asset. |
Constructor Summary | |
---|---|
Asset()
|
Method Summary | |
---|---|
static Asset.Value |
classpath(String uri)
Wraps an URI as a classpath located asset. |
static Asset.Value |
of(AssetLocation location,
String uri)
Returns an asset. |
static Asset.Id |
ref(String id)
|
static Asset.Value |
server(String uri)
Wraps an URI as a server located asset. |
static Asset.Value |
url(String uri)
Wraps an URI as an absolute uri. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Asset()
Method Detail |
---|
public static Asset.Id ref(String id)
public static Asset.Value server(String uri)
uri
- the asset uri
public static Asset.Value classpath(String uri)
uri
- the asset uri
public static Asset.Value url(String uri)
uri
- the asset uri
public static Asset.Value of(AssetLocation location, String uri)
location
- the asset locationuri
- the asset uri
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |