Annotationsschnittstelle LimitToFields


@Target(TYPE) @Retention(RUNTIME) public @interface LimitToFields
limit to a list of fields, or all fields of a given type

sould avoid problems with anonymous sub classes or proxy implementations for example limittofields will not work for fields marked with @Property and a specified fieldname

Attention: when limiting to a type, this will include all fields defined in that class, NOT honoring fields that might be ignored by it will be inherited by subclasses, so in subclasses you will need to add all fields manually, use the type or an empty version. Setting type to Object.class uses all fields again.

  • Optionale Elemente - Übersicht

    Optionale Elemente
    Modifikator und Typ
    Optionales Element
    Beschreibung
     
     
  • Elementdetails

    • value

      String[] value
      Standard:
      {}
    • type

      Class<?> type
      Standard:
      java.lang.Object.class