Java Dynamic Management Kit 5.0 Tools Reference

Mapping Rules

The proxygen compiler uses the Java Reflection API for analyzing an MBean and generating its associated proxy MBean. It parses an MBean using the JMX-specific design patterns. The mapping rules that proxygen uses for generating the proxy MBean are described in the following subsections.

Attributes

The proxygen compiler generates code only for exposed operations of the MBean itself. Each attribute of the MBean is present in the proxy MBean with the same accessor getter and setter methods. Therefore, if an attribute is read-only in the MBean, the property is read-only in the generated proxy MBean.

Operations

In addition to the attribute accessors, the proxygen compiler generates code only for exposed operations of the MBean itself.

Methods in the Proxy Interface

The proxy MBeans that the proxygen compiler generates also contain methods that are not present in the MBean. Rather, they are defined in the Java interface com.sun.jdmk.Proxy. The proxy MBean that is generated implements this interface. These methods are public methods that do not follow the design patterns defined by the JavaBeans component model.

These methods provide additional functionality for proxy MBeans and the management applications that instantiate them. Their purpose is to twofold: