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 DynamicMBean
public Object getAttribute(String name) throws AttributeNotFoundException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
public void setAttribute(Attribute attribute)
setAttribute
in interface DynamicMBean
public AttributeList getAttributes(String[] names)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList list)
setAttributes
in interface DynamicMBean
public Object invoke(String name, Object[] args, String[] sig) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public String getObjectName()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.