Annotation Interface RPCFieldGetter


@Documented @Target(FIELD) @Retention(RUNTIME) public @interface RPCFieldGetter
An annotation which can be added to a field to indicate when generating a data class serializer, that a specific method should be used as the getter rather than either a direct field access. The field provided in this annotation MUST BE declared in the same class that is declaring the annotated field. The value returned by the getter must be the value that should be written into the field on the remote side. The getter method must return the same type as the field type.
Since:
4.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Get the name of the method (case-sensitive) to use as the getter for a specific field.
  • Element Details

    • value

      String value
      Get the name of the method (case-sensitive) to use as the getter for a specific field.
      Returns:
      the name of the getter method to use.