Annotation Interface AttributeSetter


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface AttributeSetter
Annotation type to mark attribute setter methods so they can be intercepted for item event mechanism.

The annotation must contain the full attribute qualifier which this method belongs to:

 @AttributeSetter("MyType.foo")
 public void setFoo(String foo)
 {
        // ...
 }
 

This way event listeners observing all MyType (and their sub types) instances can be notified about the attribute modification whenever the method is being called.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details