...
Other modules can use this module to easily publish JMX management beans (called MBeans). The bean will be published as part of the same domain and host as the other beans. For example, the Usage Statistics Module publishes a bean which appears like this:
...
Code Block | ||
---|---|---|
| ||
@MXBean public interface HelloWorldMBean { public String getExampleValuegetMessage(); } |
...and a class which implements that interface, e.g.
Code Block | ||
---|---|---|
| ||
public class HelloWorldMBeanImpl implements ExampleMBeanHelloWorldMBean { @Override public String getMessage() { return "Hello world!"; } } |
...