public class ManagedMBean extends Object implements DynamicMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedMBean.FieldMember
Implementation of Member for java.lang.reflect.Field
Used for injection targets that are annotated fields
|
static interface |
ManagedMBean.Member
Small utility interface used to allow polymorphing
of java.lang.reflect.Method and java.lang.reflect.Field
so that each can be treated as injection targets using
the same code.
|
static class |
ManagedMBean.MethodMember
Implementation of Member for java.lang.reflect.Method
Used for injection targets that are annotated methods
|
| Constructor and Description |
|---|
ManagedMBean(Object managed) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String s) |
AttributeList |
getAttributes(String[] strings) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String operation,
Object[] args,
String[] types) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributeList) |
void |
setAttributesFilter(String exclude,
String include) |
public ManagedMBean(Object managed)
public Object getAttribute(String s) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] strings)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributeList)
setAttributes in interface DynamicMBeanpublic Object invoke(String operation, Object[] args, String[] types) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.