public class MBeanInfoAssembler extends Object implements Service
MBeanInfo
assembler that reads the
details from the ManagedResource
, ManagedAttribute
, ManagedOperation
,
ManagedNotification
, and ManagedNotifications
annotations.Constructor and Description |
---|
MBeanInfoAssembler() |
Modifier and Type | Method and Description |
---|---|
ModelMBeanInfo |
getMBeanInfo(Object defaultManagedBean,
Object customManagedBean,
String objectName)
Gets the
ModelMBeanInfo for the given managed bean |
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
public void start() throws Exception
Service
public void stop() throws Exception
Service
public ModelMBeanInfo getMBeanInfo(Object defaultManagedBean, Object customManagedBean, String objectName) throws JMException
ModelMBeanInfo
for the given managed beandefaultManagedBean
- the default managed beancustomManagedBean
- an optional custom managed beanobjectName
- the object nameJMException
- is thrown if error creating the model infoApache Camel