wangpeng138375 / pojo-mbean

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

Add support for annotating fields @Property #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If a field is annotated with @Property, it should also be explicitly marked as 
READ, WRITE or READ_WRITE.

Using field @Property annotations means you don't need getters/setters for 
simple beans.

Access in the IntrospectedDynamicMBean will be by means of field reflection

Original issue reported on code.google.com by morten.h...@gmail.com on 8 Jul 2011 at 9:10

GoogleCodeExporter commented 8 years ago
Added support for @Property annotation on (private) fields. Note that all 
"property" fields are checked for annotations throughout the inheritance 
hierarchy of the MBean annotated class.

Also, the current implementation requires the availability of getter/setter 
methods matching the configured @Property(access=XXXX) level.

This requirement may be relaxed in a future version, but don't hold your 
collective breaths ;-)

Original comment by morten.h...@gmail.com on 9 Jul 2011 at 1:15

GoogleCodeExporter commented 8 years ago

Original comment by morten.h...@gmail.com on 9 Jul 2011 at 1:25