Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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
languagejava
@MXBean
public interface HelloWorldMBean {
  public String getExampleValuegetMessage();
}

...and a class which implements that interface, e.g.

Code Block
languagejava
public class HelloWorldMBeanImpl implements ExampleMBeanHelloWorldMBean {
  @Override
  public String getMessage() {
    return "Hello world!";
  }
}

...