public class DynamicMBeanWrapper extends NotificationBroadcasterSupport implements DynamicMBean, org.apache.deltaspike.core.api.jmx.JmxBroadcaster
| Constructor and Description |
|---|
DynamicMBeanWrapper(Class<?> annotatedMBean,
boolean normalScope,
Annotation[] qualifiers)
The constructor is the builder for the MBean.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
send(Notification notification) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationpublic static final Logger LOGGER
public DynamicMBeanWrapper(Class<?> annotatedMBean, boolean normalScope, Annotation[] qualifiers)
annotatedMBean - the class of the CDI managed beannormalScope - is the CDI bean @Dependent or notqualifiers - qualfiers of the CDI bean (used to retrieve it)public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic void send(Notification notification)
send in interface org.apache.deltaspike.core.api.jmx.JmxBroadcasterCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.