org.jboss.mx.interceptor
Class AttributeDispatcher

java.lang.Object
  extended by org.jboss.mx.interceptor.AbstractInterceptor
      extended by org.jboss.mx.interceptor.ReflectedDispatcher
          extended by org.jboss.mx.interceptor.AttributeDispatcher
All Implemented Interfaces:
Interceptor

public class AttributeDispatcher
extends ReflectedDispatcher

A dispatcher used by the AbstractMBeanInvoker class for the attribute getter and setter dispatch.

Version:
$Revision: 57200 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.ReflectedDispatcher
dynamic, method
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Constructor Summary
AttributeDispatcher(Method getter, Method setter, boolean dynamic)
           
 
Method Summary
protected  void checkAssignable(String context, Class clazz, Object value)
           
 Object invoke(Invocation invocation)
          Dispatch the attribute set or get.
 
Methods inherited from class org.jboss.mx.interceptor.ReflectedDispatcher
handleInvocationExceptions
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor
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(Method getter,
                           Method setter,
                           boolean dynamic)
Method Detail

invoke

public Object invoke(Invocation invocation)
              throws 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
Overrides:
invoke in class ReflectedDispatcher
Parameters:
invocation - the invocation object send towards the target resource by the invoker
Returns:
the result of the attribute accessor invocation
Throws:
InvocationException
Throwable
See Also:
Invocation, MBeanInvoker

checkAssignable

protected void checkAssignable(String context,
                               Class clazz,
                               Object value)
                        throws InvalidAttributeValueException,
                               ClassNotFoundException
Throws:
InvalidAttributeValueException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.