Annotation Type FieldProxy
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface FieldProxy
Using this annotation it is possible to access fields by getter and setter types. Before this annotation can be used, it needs to be installed with two types. The getter type must be defined in a single-method interface with a single method that returns anObjecttype and takes no arguments. The setter interface must similarly returnvoidand take a singleObjectargument. After installing these interfaces with theFieldProxy.Binder, this binder needs to be registered with aMethodDelegationbefore it can be used.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>declaringTypeDetermines which type defines the field that is to be accessed.booleanserializableProxyDetermines if the proxy should be serializable.StringvalueDetermines the name of the field that is to be accessed.
-
-
-
-
value
String value
Determines the name of the field that is to be accessed. If this property is not set, a field name is inferred by the intercepted method after the Java beans naming conventions.- Returns:
- The name of the field to be accessed.
- Default:
- ""
-
-
-
declaringType
Class<?> declaringType
Determines which type defines the field that is to be accessed. If this property is not set, the most field that is defined highest in the type hierarchy is accessed.- Returns:
- The type that defines the accessed field.
- Default:
- void.class
-
-