com.acciente.induction.dispatcher.controller
Class ControllerExecutor
java.lang.Object
com.acciente.induction.dispatcher.controller.ControllerExecutor
public class ControllerExecutor
- extends java.lang.Object
Internal.
This class executes a specified method on a specified controller instance
- Author:
- Adinath Raveendra Raj
Method Summary |
java.lang.Object |
execute(ControllerResolver.Resolution oResolution,
javax.servlet.http.HttpServletRequest oRequest,
javax.servlet.http.HttpServletResponse oResponse,
java.lang.Throwable oError)
Executes the controller specified in the oResolution parameter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerExecutor
public ControllerExecutor(ControllerPool oControllerPool,
ControllerParameterProviderFactory oControllerParameterProviderFactory)
- Creates a new controller executor instance
- Parameters:
oControllerPool
- a controller pooloControllerParameterProviderFactory
- a parameter value resolver
execute
public java.lang.Object execute(ControllerResolver.Resolution oResolution,
javax.servlet.http.HttpServletRequest oRequest,
javax.servlet.http.HttpServletResponse oResponse,
java.lang.Throwable oError)
throws ControllerExecutorException
- Executes the controller specified in the oResolution parameter
- Parameters:
oResolution
- specifies the controller to executeoRequest
- passed thru to the controller if the controller so requestsoResponse
- passed thru to the controller if the controller so requestsoError
- used when calling the error handler controller, to pass the exception
in response to which the controller is called, this will be available for injection
in the error controller
- Returns:
- the value returned by the controller
- Throws:
ControllerExecutorException
- if an error was encountered during controller loading, executing,
or post post processing, the exception's cause will always contain the actual underlying cause of the error
Copyright © 2008-2011 Acciente, LLC. All Rights Reserved.