org.apache.openejb.monitoring
Class ManagedMBean
java.lang.Object
org.apache.openejb.monitoring.ManagedMBean
- All Implemented Interfaces:
- DynamicMBean
public class ManagedMBean
- extends Object
- implements DynamicMBean
- Version:
- $Rev$ $Date$
Nested Class Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedMBean
public ManagedMBean(Object managed)
getAttribute
public Object getAttribute(String s)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] strings)
- Specified by:
getAttributes
in interface DynamicMBean
setAttributes
public AttributeList setAttributes(AttributeList attributeList)
- Specified by:
setAttributes
in interface DynamicMBean
invoke
public Object invoke(String operation,
Object[] args,
String[] types)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface DynamicMBean
- Throws:
MBeanException
ReflectionException
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface DynamicMBean
setAttributesFilter
public void setAttributesFilter(String exclude,
String include)
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.