Class MBeanInfoAssembler

java.lang.Object
org.apache.camel.support.management.MBeanInfoAssembler
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service

public class MBeanInfoAssembler extends Object implements org.apache.camel.Service
A Camel specific MBeanInfo assembler that reads the details from the ManagedResource, ManagedAttribute, ManagedOperation, ManagedNotification, and ManagedNotifications annotations.
  • Constructor Details

    • MBeanInfoAssembler

      public MBeanInfoAssembler(org.apache.camel.CamelContext camelContext)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.apache.camel.Service
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.camel.Service
    • getMBeanInfo

      public ModelMBeanInfo getMBeanInfo(org.apache.camel.CamelContext camelContext, 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