public class ResourceDMBean extends Object implements DynamicMBean
ManagedOperation, otherwise the call fails. JGroups deviated from this logic on
purpose because they liked the fact that you could expose all class methods by simply annotating class with MBean annotation.| Constructor and Description |
|---|
ResourceDMBean(Object instance,
ManageableComponentMetadata mBeanMetadata) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
AttributeList |
getAttributes(String[] names) |
MBeanInfo |
getMBeanInfo() |
String |
getObjectName() |
Object |
invoke(String name,
Object[] args,
String[] sig) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList list) |
public ResourceDMBean(Object instance, ManageableComponentMetadata mBeanMetadata) throws NoSuchFieldException, ClassNotFoundException
public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic Object getAttribute(String name) throws AttributeNotFoundException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionpublic void setAttribute(Attribute attribute)
setAttribute in interface DynamicMBeanpublic AttributeList getAttributes(String[] names)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList list)
setAttributes in interface DynamicMBeanpublic Object invoke(String name, Object[] args, String[] sig) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic String getObjectName()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.