The JMX Model MBean Instrumentor is a Java module for automatic instrumentation of objects of arbitrary classes as JMX Model MBeans. Simply by passing an object to the JMX Instrumentor, appropriate JMX ModelMBeanInfo will be created and the object registered as an MBean.
The JMX Model MBean Instrumentor project will provide two packages:
The Reflection Inspector, which recursively traverses the reflection tree of an arbitrary class and calls handlers of a strategy object when discovering the class'es attributes, methods, and constructors.
The JMX Model MBean Instrumentor, which is a strategy for the Reflection Inspector providing handler methods which generate the JMX ModelMBeanInfo for the class members detected by the Reflection Inspector.
Furthermore, a JMX annotation is provided which is capable of specifying more detailed information than can be gained by reflection. The JMX Model MBean Instrumentor is aware of this annotation and includes the information provided into the generated JMX ModelMBeanInfo.