org.jboss.mx.interceptor
Class AttributeDispatcher

java.lang.Object
  extended byorg.jboss.mx.interceptor.AbstractInterceptor (src) 
      extended byorg.jboss.mx.interceptor.ReflectedDispatcher (src) 
          extended byorg.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.


Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.ReflectedDispatcher (src)
dynamic, method
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor (src)
isShared, log, name
 
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 org.jboss.mx.interceptor.ReflectedDispatcher (src)
handleInvocationExceptions
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor (src)
destroy, getName, init, isShared, setLogger, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDispatcher

public AttributeDispatcher(java.lang.reflect.Method getter,
                           java.lang.reflect.Method setter,
                           boolean dynamic)
Method Detail

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