Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.tapestry5.annotations
Annotation Type Environmental

    @Target(value=FIELD)
    @Documented
    @Retention(value=RUNTIME)
    @UseWith(value={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 the `Environment` service.

Most commonly, the field will be of type `JavaScriptSupport`, `Heartbeat` or `FormSupport`, though many other options are possible.

Optional Element Summary
`boolean` | `value` The value determines if the environmental service to be injected is required or not.

### value

    public abstract 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2012 The Apache Software Foundation.