Class AnnotatedStandardMBean

    • Constructor Detail

      • AnnotatedStandardMBean

        public AnnotatedStandardMBean​(T impl,
                                      Class<T> clzIface)
                               throws NotCompliantMBeanException
        Make a DynamicMBean out of the MBean implementation, using the specified mbeanInterface class.
        Type Parameters:
        T - the type of the MBean implementation
        Parameters:
        impl - the implementation of the MBean
        clzIface - the Management Interface implemented by the 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:
        NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if the provided implementation does not implement the specified interface
      • AnnotatedStandardMBean

        public AnnotatedStandardMBean​(T impl,
                                      Class<T> clzIface,
                                      boolean isMXBean)
                               throws NotCompliantMBeanException
        Make a DynamicMBean out of the MBean implementation, using the specified mbeanInterface class.
        Type Parameters:
        T - the type of the MBean implementation
        Parameters:
        impl - the implementation of the MBean
        clzIface - the Management Interface implemented by the MBean's implementation. If null, then this object will use standard JMX design pattern to determine the management interface associated with the given implementation
        isMXBean - flag indicating whether clzIface represents an MXBean
        Throws:
        NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if the provided implementation does not implement the specified interface