Top Description Methods
org.terracotta.context.annotations

public @Interface ContextAttribute

extends Annotation
Annotations
@Inherited
@Retention:RUNTIME
@Target:FIELD, METHOD, TYPE
Imports
java.lang.annotation.ElementType, .Inherited, .Retention, .RetentionPolicy, .Target

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.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the attribute name
value
()

The name with which this attribute should be associated.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name with which this attribute should be associated.

Returns:String

the attribute name