Annotation Interface 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.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • value

      String[] value
      Default:
      {}
    • type

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