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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMBeanInfo(org.apache.camel.CamelContext camelContext, Object defaultManagedBean, Object customManagedBean, String objectName) Gets theModelMBeanInfofor the given managed beanvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
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
-