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 specificMBeanInfoassembler that reads the details from theManagedResource,ManagedAttribute,ManagedOperation,ManagedNotification, andManagedNotificationsannotations.
-
-
Constructor Summary
Constructors Constructor Description MBeanInfoAssembler(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelMBeanInfogetMBeanInfo(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName)Gets theModelMBeanInfofor the given managed beanvoidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
getMBeanInfo
public ModelMBeanInfo getMBeanInfo(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName) throws JMException
Gets theModelMBeanInfofor the given managed bean- Parameters:
defaultManagedBean- the default managed beancustomManagedBean- an optional custom managed beanobjectName- 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
-
-