org.terracotta.context.annotations
Annotation Type ContextAttribute


@Inherited
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD,TYPE})
public @interface ContextAttribute

Marks a field, method, or the object itself as a context attribute.

Annotated final fields may be fetched eagerly at context creation time. Non static fields and methods are fetched both lazily and on also on every attribute access. Annotating the class type will associate this with the supplied attribute name.


Required Element Summary
 String value
          The name with which this attribute should be associated.
 

Element Detail

value

public abstract String value
The name with which this attribute should be associated.

Returns:
the attribute name


Copyright © 2015. All Rights Reserved.