Class AnnotatedStandardMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration
    Direct Known Subclasses:
    OpenAnnotatedStandardMBean

    public class AnnotatedStandardMBean
    extends javax.management.StandardMBean
    The extension of StandardMBean that will automatically provide JMX metadata through annotations.
    See Also:
    MBeanInfo, Description, Name, Impact
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotatedStandardMBean​(T implementation, java.lang.Class<T> mbeanInterface)
      Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class.
    • Method Summary

      • Methods inherited from class javax.management.StandardMBean

        getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotatedStandardMBean

        public AnnotatedStandardMBean​(T implementation,
                                      java.lang.Class<T> mbeanInterface)
                               throws javax.management.NotCompliantMBeanException
        Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class.
        Type Parameters:
        T - Allows the compiler to check that implementation does indeed implement the class described by mbeanInterface. The compiler can only check this if mbeanInterface is a class literal such as MyMBean.class.
        Parameters:
        implementation - The implementation of this MBean.
        mbeanInterface - The Management Interface exported by this MBean's implementation. If null, then this object will use standard JMX design pattern to determine the management interface associated with the given implementation.
        Throws:
        javax.management.NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if the given implementation does not implement the specified interface.
        See Also:
        StandardMBean(Object, Class)