Package net.java.ao

Annotation Type Accessor


@Retention(RUNTIME) @Target(METHOD) public @interface Accessor

Used to mark a particular field as an accessor. This allows two things:

  • Non-compliance with the get/set convention
  • Overriding of the auto-generated field name (e.g. a method named "getURI" would generate (by default) a field name of "uRI". Most likely, the desired field name was in fact "uri". This annotation allows such field names
Author:
Daniel Spiewak
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the field for which this method is an accessor.
  • Element Details

    • value

      String value
      The name of the field for which this method is an accessor. This will override any automatically generated field name.