Annotation Interface Option.Decorator

Enclosing class:
Option

@Target(METHOD) @Retention(CLASS) public static @interface Option.Decorator
Define an option decorator. This is useful for example when setting a compound option, where we need to set additional options on this builder.

Decorator on collection based options will be ignored. Decorator on optional values must accept an option (as it would be called both from the setter and unset methods).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Type declaration including generic types (must match the declared generic type on the blueprint).
  • Element Details

    • value

      Class<? extends Prototype.OptionDecorator<?,?>> value
      Type declaration including generic types (must match the declared generic type on the blueprint).
      Returns:
      type name with generic declaration