Annotation Type AdaptationSetter


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface AdaptationSetter
    Marks a method as being a setter method for a given adaptation field.
    The return type must be the adaptation class, or a super-type. The setter is expected to return 'this', but the returned value is always ignored by the CGIN scenario tools.
    Example:
    @AdaptationSetter("address") SomeAdaptationType setAddress(String address)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The name of the adaptation field.
    • Element Detail

      • value

        String value
        The name of the adaptation field. Must be specified.