org.apache.camel.management
Class MBeanInfoAssembler

java.lang.Object
  extended by org.apache.camel.management.MBeanInfoAssembler

public class MBeanInfoAssembler
extends Object

A Camel specific MBeanInfo assembler that reads the details from the ManagedResource, ManagedAttribute, ManagedOperation, ManagedNotification, and ManagedNotifications annotations.


Constructor Summary
MBeanInfoAssembler()
           
 
Method Summary
 ModelMBeanInfo getMBeanInfo(Object defaultManagedBean, Object customManagedBean, String objectName)
          Gets the ModelMBeanInfo for the given managed bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanInfoAssembler

public MBeanInfoAssembler()
Method Detail

getMBeanInfo

public ModelMBeanInfo getMBeanInfo(Object defaultManagedBean,
                                   Object customManagedBean,
                                   String objectName)
                            throws JMException
Gets the ModelMBeanInfo for the given managed bean

Parameters:
defaultManagedBean - the default managed bean
customManagedBean - an optional custom managed bean
objectName - the object name
Returns:
the model info, or null if not possible to create, for example due the managed bean is a proxy class
Throws:
JMException - is thrown if error creating the model info


Apache CAMEL