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 this with the supplied attribute name.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The name with which this attribute should be associated.
    • Element Detail

      • value

        java.lang.String value
        The name with which this attribute should be associated.
        Returns:
        the attribute name