Package org.apache.tapestry5.annotations
Annotation Type Environmental
-
@Target(FIELD) @Documented @Retention(RUNTIME) @UseWith({COMPONENT,MIXIN,PAGE}) public @interface Environmental
Defines a field of a component class that is replaced at runtime with a read-only value obtained from theEnvironment
service. Most commonly, the field will be of typeJavaScriptSupport
,Heartbeat
orFormSupport
, though many other options are possible.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
value
The value determines if the environmental service to be injected is required or not.
-
-
-
Element Detail
-
value
boolean value
The value determines if the environmental service to be injected is required or not. In most cases, it is, so the default is true.- Default:
- true
-
-