Annotation Type ContextAttribute
-
@Inherited @Retention(RUNTIME) @Target({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
thiswith the supplied attribute name.
-
-
Element Detail
-
value
String value
The name with which this attribute should be associated.- Returns:
- the attribute name
-
-