org.jboss.mx.interceptor
Class ReflectedDispatcher

java.lang.Object
  extended byorg.jboss.mx.interceptor.AbstractInterceptor (src) 
      extended byorg.jboss.mx.interceptor.ReflectedDispatcher
All Implemented Interfaces:
Interceptor (src)
Direct Known Subclasses:
AttributeDispatcher (src)

public class ReflectedDispatcher
extends AbstractInterceptor (src)


Field Summary
protected  boolean dynamic
           
protected  java.lang.reflect.Method method
           
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor (src)
isShared, log, name
 
Constructor Summary
ReflectedDispatcher()
           
ReflectedDispatcher(boolean dynamic)
           
ReflectedDispatcher(java.lang.reflect.Method m, boolean dynamic)
           
 
Method Summary
protected  void handleInvocationExceptions(java.lang.Throwable t)
           
 java.lang.Object invoke(Invocation (src)  invocation)
          The default invoke implementation queries the invocation object for the next interceptor in the chain.
 
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
 

Field Detail

method

protected java.lang.reflect.Method method

dynamic

protected boolean dynamic
Constructor Detail

ReflectedDispatcher

public ReflectedDispatcher()

ReflectedDispatcher

public ReflectedDispatcher(boolean dynamic)

ReflectedDispatcher

public ReflectedDispatcher(java.lang.reflect.Method m,
                           boolean dynamic)
Method Detail

invoke

public java.lang.Object invoke(Invocation (src)  invocation)
                        throws java.lang.Throwable
Description copied from class: AbstractInterceptor (src)
The default invoke implementation queries the invocation object for the next interceptor in the chain. If one exists, it is invoked. Otherwise the invocation is dispatched to the target object.

Concrete implementations should override this method to implement their specific application logic.

Specified by:
invoke in interface Interceptor (src)
Overrides:
invoke in class AbstractInterceptor (src)
Parameters:
invocation - the invocation object send towards the target resource by the invoker
Returns:
return value from the target resource
Throws:
java.lang.Throwable
See Also:
Invocation (src) , MBeanInvoker (src)

handleInvocationExceptions

protected void handleInvocationExceptions(java.lang.Throwable t)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable