Package nl.vpro.jmx
Class AnnotatedStandardMXBean
- java.lang.Object
-
- javax.management.StandardMBean
-
- nl.vpro.jmx.AnnotatedStandardMXBean
-
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
public class AnnotatedStandardMXBean extends StandardMBean
Provides support for the annotationDescription
,Name
and,Units
. {@link MBeans#registerBean(ObjectName, Object), wraps mbeans in this, so that the proper metadata of them is visible in mbean clients (like visualvm). See here, from which this class was largely copied.
-
-
Constructor Summary
Constructors Constructor Description AnnotatedStandardMXBean(T implementation, Class<T> mbeanInterface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDescription(MBeanAttributeInfo info)
Returns the description of an Attributeprotected String
getDescription(MBeanInfo beanInfo)
protected String
getDescription(MBeanOperationInfo op)
Returns the description of an operationprotected String
getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int paramNo)
Returns the description of a parameterprotected String
getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int paramNo)
Returns the name of a parameter-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
AnnotatedStandardMXBean
public AnnotatedStandardMXBean(T implementation, Class<T> mbeanInterface)
-
-
Method Detail
-
getDescription
protected String getDescription(MBeanInfo beanInfo)
- Overrides:
getDescription
in classStandardMBean
-
getDescription
protected String getDescription(MBeanAttributeInfo info)
Returns the description of an Attribute- Overrides:
getDescription
in classStandardMBean
-
getDescription
protected String getDescription(MBeanOperationInfo op)
Returns the description of an operation- Overrides:
getDescription
in classStandardMBean
-
getDescription
protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int paramNo)
Returns the description of a parameter- Overrides:
getDescription
in classStandardMBean
-
getParameterName
protected String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int paramNo)
Returns the name of a parameter- Overrides:
getParameterName
in classStandardMBean
-
-