Annotation Interface Prop


@Target(FIELD) @Retention(CLASS) public @interface Prop
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    do not generate a constant setter for this property
    boolean
    ensures that only one simple setter is generated, meant for disambiguating Supplier type props that should not be reactive
    when at least one of a set of props needs to be assigned a value
    boolean
    specifies that a prop needs to be set
    When the inner type of a Supplier prop is assignable to Supplier the setter needs to be named differently because Java will not be able to do operator overloading.
  • Element Details

    • required

      boolean required
      specifies that a prop needs to be set
      Default:
      false
    • oneofKey

      String oneofKey
      when at least one of a set of props needs to be assigned a value
      Default:
      ""
    • suffix

      String suffix
      When the inner type of a Supplier prop is assignable to Supplier the setter needs to be named differently because Java will not be able to do operator overloading. This suffix can be changed in order to avoid name clashes with other properties.
      Default:
      "Const"
    • noRx

      boolean noRx
      ensures that only one simple setter is generated, meant for disambiguating Supplier type props that should not be reactive
      Default:
      false
    • noConst

      boolean noConst
      do not generate a constant setter for this property
      Default:
      false