mioz2077 / pojo-mbean

Automatically exported from code.google.com/p/pojo-mbean
0 stars 0 forks source link

Automatic discovery of attributes and operations via @MBean(automatic={ATTRIBUTE, OPERATION}) #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r139.

Original comment by morten.h...@gmail.com on 14 Jul 2011 at 10:20