Class MBeanInfoAssembler
java.lang.Object
org.apache.camel.support.management.MBeanInfoAssembler
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.Service
A Camel specific
MBeanInfo
assembler that reads the details from the
ManagedResource
, ManagedAttribute
, ManagedOperation
, ManagedNotification
, and
ManagedNotifications
annotations.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMBeanInfo
(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName) Gets theModelMBeanInfo
for the given managed beanvoid
start()
void
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
MBeanInfoAssembler
public MBeanInfoAssembler(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
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
-