org.jboss.mx.interceptor
Class AttributeDispatcher
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor
org.jboss.mx.interceptor.ReflectedDispatcher
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
AttributeDispatcher
public AttributeDispatcher(Method getter,
Method setter,
boolean dynamic)
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.