Package org.zkoss.bind.annotation
Annotation Type ImmutableFields
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Inherited public @interface ImmutableFields
Marker annotation to indicate all of the fields returned from the given class are immutable (no setter). UnlikeImmutable
, this annotation can be made as a proxy object for Form Binding, but not for all its fields.
For example,public class VM { @ImmutableFields public Foo getFoo() {} // this Foo can make as a proxy, but not for its getDate() method. } public class Foo { public Date getDate() {} // this date object cannot make as a proxy. }
- Since:
- 8.0.1
- Author:
- jumperchen