org.apache.activemq.broker.jmx
Class AnnotatedMBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.activemq.broker.jmx.AnnotatedMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration

public class AnnotatedMBean
extends javax.management.StandardMBean

MBean that looks for method/parameter descriptions in the Info annotation.


Constructor Summary
protected AnnotatedMBean(java.lang.Class<?> mbeanInterface)
          Instance where the MBean interface is implemented by this object.
  AnnotatedMBean(T impl, java.lang.Class<T> mbeanInterface)
          Instance where the MBean interface is implemented by another object.
 
Method Summary
protected  java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
          
protected  java.lang.String getDescription(javax.management.MBeanOperationInfo op)
          
protected  java.lang.String getParameterName(javax.management.MBeanOperationInfo op, javax.management.MBeanParameterInfo param, int paramNo)
          
 java.lang.Object invoke(java.lang.String s, java.lang.Object[] objects, java.lang.String[] strings)
           
static void registerMBean(ManagementContext context, java.lang.Object object, javax.management.ObjectName objectName)
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedMBean

public AnnotatedMBean(T impl,
                      java.lang.Class<T> mbeanInterface)
               throws javax.management.NotCompliantMBeanException
Instance where the MBean interface is implemented by another object.

Throws:
javax.management.NotCompliantMBeanException

AnnotatedMBean

protected AnnotatedMBean(java.lang.Class<?> mbeanInterface)
                  throws javax.management.NotCompliantMBeanException
Instance where the MBean interface is implemented by this object.

Throws:
javax.management.NotCompliantMBeanException
Method Detail

registerMBean

public static void registerMBean(ManagementContext context,
                                 java.lang.Object object,
                                 javax.management.ObjectName objectName)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getDescription

protected java.lang.String getDescription(javax.management.MBeanAttributeInfo info)

Overrides:
getDescription in class javax.management.StandardMBean

getDescription

protected java.lang.String getDescription(javax.management.MBeanOperationInfo op)

Overrides:
getDescription in class javax.management.StandardMBean

getParameterName

protected java.lang.String getParameterName(javax.management.MBeanOperationInfo op,
                                            javax.management.MBeanParameterInfo param,
                                            int paramNo)

Overrides:
getParameterName in class javax.management.StandardMBean

invoke

public java.lang.Object invoke(java.lang.String s,
                               java.lang.Object[] objects,
                               java.lang.String[] strings)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Overrides:
invoke in class javax.management.StandardMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException


Copyright © 2005-2016. All Rights Reserved.