public class AnnotatedStandardMBean extends StandardMBean
StandardMBean that will automatically provide JMX
metadata through annotations.MBeanInfo,
Description,
Name,
Impact| Constructor and Description |
|---|
AnnotatedStandardMBean(T implementation,
Class<T> mbeanInterface)
Make a DynamicMBean out of the object implementation, using the specified
mbeanInterface class.
|
getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic AnnotatedStandardMBean(T implementation,
Class<T> mbeanInterface)
throws NotCompliantMBeanException
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.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.NotCompliantMBeanException - if the mbeanInterface does not
follow JMX design patterns for Management Interfaces, or if the given
implementation does not implement the specified interface.StandardMBean.StandardMBean(Object, Class)Copyright © 2010 - 2020 Adobe. All Rights Reserved