juzu.plugin.asset
Annotation Type Script


@Retention(value=RUNTIME)
@Target(value={})
public @interface Script

A script asset declaration.

Author:
Julien Viet

Required Element Summary
 String value
           
 
Optional Element Summary
 String[] depends
           
 String id
           
 AssetLocation location
           
 int maxAge
          Defines max-age cache control headers for this script asset.
 String minified
           
 

Element Detail

value

public abstract String value
Returns:
the value for resolving the script

id

public abstract String id
Returns:
the asset id, used for referencing this script, the value is optional.
Default:
""

minified

public abstract String minified
Returns:
the minified version of the script
Default:
""

depends

public abstract String[] depends
Returns:
the script dependencies, i.e the script that are needed by this asset.
Default:
{}

location

public abstract AssetLocation location
Returns:
the asset location
Default:
juzu.asset.AssetLocation.APPLICATION

maxAge

public abstract int maxAge
Defines max-age cache control headers for this script asset.

Returns:
the max age
Default:
-1


Copyright © 2014 eXo Platform SAS. All rights reserved.