Examples of MBeanInfoAssembler


Examples of org.springframework.jmx.export.assembler.MBeanInfoAssembler

      }
     
      // assemble MBean info (from annotations by default)
      ModelMBean modelMBean = new RequiredModelMBean();
      modelMBean.setManagedResource(mbean, MR_TYPE_OBJECT_REFERENCE);
      MBeanInfoAssembler mBeanInfoAssembler = new MetadataMBeanInfoAssembler(new AnnotationJmxAttributeSource());
      modelMBean.setModelMBeanInfo(mBeanInfoAssembler.getMBeanInfo(mbean, objectName.getCanonicalName()));
      registrar.doRegister(modelMBean, objectName);
    }
    catch (Exception e) {
      throw new JmxRegisterException("error registering MBean", e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.