org.apache.camel.management
Class DefaultManagementMBeanAssembler

java.lang.Object
  extended by org.apache.camel.management.DefaultManagementMBeanAssembler
All Implemented Interfaces:
ManagementMBeanAssembler

public class DefaultManagementMBeanAssembler
extends Object
implements ManagementMBeanAssembler

An assembler to assemble a ModelMBean which can be used to register the object in JMX. The assembler is capable of using the Camel JMX annotations to gather the list of JMX operations and attributes.

Version:

Field Summary
protected  MBeanInfoAssembler assembler
           
protected  CamelContext camelContext
           
 
Constructor Summary
DefaultManagementMBeanAssembler(CamelContext camelContext)
           
 
Method Summary
 ModelMBean assemble(MBeanServer mBeanServer, Object obj, ObjectName name)
          Assemble the ModelMBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assembler

protected final MBeanInfoAssembler assembler

camelContext

protected final CamelContext camelContext
Constructor Detail

DefaultManagementMBeanAssembler

public DefaultManagementMBeanAssembler(CamelContext camelContext)
Method Detail

assemble

public ModelMBean assemble(MBeanServer mBeanServer,
                           Object obj,
                           ObjectName name)
                    throws JMException
Description copied from interface: ManagementMBeanAssembler
Assemble the ModelMBean.

Specified by:
assemble in interface ManagementMBeanAssembler
Parameters:
mBeanServer - the mbean server
obj - the object
name - the object name to use in JMX
Returns:
the assembled ModelMBean, or null if not possible to assemble an MBean
Throws:
JMException - is thrown if error assembling the mbean


Apache Camel