Package nl.vpro.jmx
Class AnnotatedStandardMXBean
java.lang.Object
javax.management.StandardMBean
nl.vpro.jmx.AnnotatedStandardMXBean
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
Provides support for the annotation
Description
, 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the description of an Attributeprotected String
getDescription
(MBeanInfo beanInfo) protected String
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 parameterMethods 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 Details
-
AnnotatedStandardMXBean
-
-
Method Details
-
getDescription
- Overrides:
getDescription
in classStandardMBean
-
getDescription
Returns the description of an Attribute- Overrides:
getDescription
in classStandardMBean
-
getDescription
Returns the description of an operation- Overrides:
getDescription
in classStandardMBean
-
getDescription
Returns the description of a parameter- Overrides:
getDescription
in classStandardMBean
-
getParameterName
Returns the name of a parameter- Overrides:
getParameterName
in classStandardMBean
-