Annotation Interface DefaultValues


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface DefaultValues
Marker interface to designate an annotation as a default value provider. The attributes of the annotated annotation type will be used as default values for the annotated dsl object, either as is, or, in the case of a closure member, the result of the closure. The resulting default-value annotation can only be used on a @DSL class or a field declared by one.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If false (default), the setting will fail if a matching field in the target object does not exist.
    Maps the member 'values' of the annotated annotation to a specific target field in the annotated object.
  • Element Details

    • ignoreUnknownFields

      boolean ignoreUnknownFields
      If false (default), the setting will fail if a matching field in the target object does not exist. If true, missing fields are silently ignored.
      Default:
      false
    • valueTarget

      String valueTarget
      Maps the member 'values' of the annotated annotation to a specific target field in the annotated object.
      Default:
      ""