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 specificMBeanInfo
assembler that reads the details from theManagedResource
,ManagedAttribute
,ManagedOperation
,ManagedNotification
, andManagedNotifications
annotations.
-
-
Constructor Summary
Constructors Constructor Description MBeanInfoAssembler(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelMBeanInfo
getMBeanInfo(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName)
Gets theModelMBeanInfo
for the given managed beanvoid
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
getMBeanInfo
public ModelMBeanInfo getMBeanInfo(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName) throws JMException
Gets theModelMBeanInfo
for 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
-
-