Heavily inspired by Project Lombok's @Data annotation that, when applied to a
class, will automatically generate getters and setters for all appropriate
fields, we should support something similar on pojo-mbean.
A class that is annotated with @MBean(automatic=ATTRIBUTE), any bean compliant
accessor method (getter/setter) on the class and any superclass with the same
@MBean annotation will be automatically treated as if they were annotated with
@ManagedAttribute.
Any method on a class, and all of its superclasses that satisfies all of:
1. its class is annotated with @MBean(automatic=OPERATION)
2. it is NOT considered a bean accessor (getter/setter)
3. it is a public instance (non static) method
Will be automatically treated as if they were annotated with @ManagedOperation.
Original issue reported on code.google.com by morten.h...@gmail.com on 14 Jul 2011 at 10:18
Original issue reported on code.google.com by
morten.h...@gmail.com
on 14 Jul 2011 at 10:18