org.jboss.mx.interceptor
Class AttributeDispatcher
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor (src)
org.jboss.mx.interceptor.ReflectedDispatcher (src)
org.jboss.mx.interceptor.AttributeDispatcher
- All Implemented Interfaces:
- Interceptor (src)
- public class AttributeDispatcher
- extends ReflectedDispatcher (src)
A dispatcher used by the AbstractMBeanInvoker class for the attribute
getter and setter dispatch.
Constructor Summary |
AttributeDispatcher(java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
boolean dynamic)
|
Method Summary |
protected void |
checkAssignable(java.lang.String context,
java.lang.Class clazz,
java.lang.Object value)
|
java.lang.Object |
invoke(Invocation (src) invocation)
Dispatch the attribute set or get. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeDispatcher
public AttributeDispatcher(java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
boolean dynamic)
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Throwable
- Dispatch the attribute set or get. A get is identified by a dispatch
with a null args value.
- Specified by:
invoke
in interface Interceptor (src)
- Overrides:
invoke
in class ReflectedDispatcher (src)
- Returns:
- the result of the attribute accessor invocation
- Throws:
InvocationException
java.lang.Throwable
checkAssignable
protected void checkAssignable(java.lang.String context,
java.lang.Class clazz,
java.lang.Object value)
throws InvalidAttributeValueException (src) ,
java.lang.ClassNotFoundException
- Throws:
InvalidAttributeValueException (src)
java.lang.ClassNotFoundException