Example usage for javax.management.modelmbean ModelMBean getMBeanInfo

List of usage examples for javax.management.modelmbean ModelMBean getMBeanInfo

Introduction

In this page you can find the example usage for javax.management.modelmbean ModelMBean getMBeanInfo.

Prototype

public MBeanInfo getMBeanInfo();

Source Link

Document

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

Usage

From source file:org.atomserver.utils.jmx.NoGetterMBeanExporter.java

protected void doRegister(Object mbean, ObjectName objectName) throws JMException {
    if (mbean instanceof ModelMBean) {
        ModelMBean mmb = (ModelMBean) mbean;
        ModelMBeanInfo mmbi = (ModelMBeanInfo) mmb.getMBeanInfo();
        mmb.setModelMBeanInfo(new NoGetterMBeanInfo(mmbi));
    }/*from   w  w w  .ja  v a2 s .c  om*/
    super.doRegister(mbean, objectName);
}