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

## org.apache.tapestry5.ioc.annotations
Annotation Type Symbol

    @Target(value={PARAMETER,FIELD})
    @Retention(value=RUNTIME)
    @Documented
    @UseWith(value={COMPONENT,MIXIN,PAGE,SERVICE})
    public @interface Symbol

Used to inject a symbol value, via a symbol name. This is used much like `Value` annotation, except that symbols are not expanded ... the entire value is a symbol name. This allows the annotation to reference a public constant variable.

The injected value may be coerced from string to an alternate type (defined by the field or parameter to which the @Symbol annotation is attached). For better control, use the `IntermediateType` annotation as well, which allows the string to be coerced to an alternate type before being coerced a second time to the field or parameter type.

Required Element Summary
`java.lang.String` | `value` The name of the symbol to inject.

Element Detail

### value

    public abstract java.lang.String value

  The name of the symbol to inject.

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.