Annotation Type ImmutableFields

  • @Target({TYPE,METHOD})
    public @interface ImmutableFields
    Marker annotation to indicate all of the fields returned from the given class are immutable (no setter). Unlike Immutable, this annotation can be made as a proxy object for Form Binding, but not for all its fields.
    For example,
     public class VM {
            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.