Copyright © 2008, 2009 Pedro Agulló Soliveres

com.softwarementors.extjs.djn.router.dispatcher
Class DispatcherBase

java.lang.Object
  extended by com.softwarementors.extjs.djn.router.dispatcher.DispatcherBase
All Implemented Interfaces:
Dispatcher
Direct Known Subclasses:
OldDefaultDispatcher, SsmDispatcher

public abstract class DispatcherBase
extends java.lang.Object
implements Dispatcher


Constructor Summary
DispatcherBase()
           
 
Method Summary
protected  java.lang.Object createInvokeInstanceForMethodWithDefaultConstructor(RegisteredMethod method)
           
 java.lang.Object dispatch(RegisteredMethod method, java.lang.Object[] parameters)
           
protected abstract  java.lang.Object getInvokeInstanceForNonStaticMethod(RegisteredMethod method)
           
protected  java.lang.Object invokeJavaMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] parameters)
           
protected  java.lang.Object invokeMethod(RegisteredMethod method, java.lang.Object actionInstance, java.lang.Object[] parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherBase

public DispatcherBase()
Method Detail

dispatch

public java.lang.Object dispatch(RegisteredMethod method,
                                 java.lang.Object[] parameters)
Specified by:
dispatch in interface Dispatcher

getInvokeInstanceForNonStaticMethod

protected abstract java.lang.Object getInvokeInstanceForNonStaticMethod(RegisteredMethod method)
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createInvokeInstanceForMethodWithDefaultConstructor

protected java.lang.Object createInvokeInstanceForMethodWithDefaultConstructor(RegisteredMethod method)
                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

invokeMethod

protected java.lang.Object invokeMethod(RegisteredMethod method,
                                        java.lang.Object actionInstance,
                                        java.lang.Object[] parameters)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

invokeJavaMethod

protected final java.lang.Object invokeJavaMethod(java.lang.Object instance,
                                                  @NonNull
                                                  java.lang.reflect.Method method,
                                                  @NonNull
                                                  java.lang.Object[] parameters)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

Copyright © 2008, 2009 Pedro Agulló Soliveres