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:
DefaultDispatcher, SsmDispatcher

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


Constructor Summary
DispatcherBase()
           
 
Method Summary
protected  java.lang.Object createActionInstance(RegisteredAction action)
           
protected static MethodExecutionException createUnableToCreateActionInstanceException(RegisteredAction action, java.lang.Throwable e)
           
 java.lang.Object dispatch(RegisteredMethod method, java.lang.Object[] parameters)
           
protected abstract  java.lang.Object getActionInstance(RegisteredAction action)
           
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

getActionInstance

protected abstract java.lang.Object getActionInstance(RegisteredAction action)

createActionInstance

protected java.lang.Object createActionInstance(RegisteredAction action)

invokeMethod

protected java.lang.Object invokeMethod(RegisteredMethod method,
                                        java.lang.Object actionInstance,
                                        java.lang.Object[] parameters)

createUnableToCreateActionInstanceException

protected static MethodExecutionException createUnableToCreateActionInstanceException(RegisteredAction action,
                                                                                      java.lang.Throwable e)

Copyright © 2008, 2009 Pedro Agulló Soliveres