com.acciente.induction.dispatcher.controller
Class ControllerExecutor

java.lang.Object
  extended by com.acciente.induction.dispatcher.controller.ControllerExecutor

public class ControllerExecutor
extends Object

Internal. This class executes a specified method on a specified controller instance

Author:
Adinath Raveendra Raj

Constructor Summary
ControllerExecutor(ControllerPool oControllerPool, ControllerParameterProviderFactory oControllerParameterProviderFactory)
          Creates a new controller executor instance
 
Method Summary
 Object execute(ControllerResolver.Resolution oResolution, javax.servlet.http.HttpServletRequest oRequest, javax.servlet.http.HttpServletResponse oResponse, 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
 

Constructor Detail

ControllerExecutor

public ControllerExecutor(ControllerPool oControllerPool,
                          ControllerParameterProviderFactory oControllerParameterProviderFactory)
Creates a new controller executor instance

Parameters:
oControllerPool - a controller pool
oControllerParameterProviderFactory - a parameter value resolver
Method Detail

execute

public Object execute(ControllerResolver.Resolution oResolution,
                      javax.servlet.http.HttpServletRequest oRequest,
                      javax.servlet.http.HttpServletResponse oResponse,
                      Throwable oError)
               throws ControllerExecutorException
Executes the controller specified in the oResolution parameter

Parameters:
oResolution - specifies the controller to execute
oRequest - passed thru to the controller if the controller so requests
oResponse - passed thru to the controller if the controller so requests
oError - 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-2013 Acciente, LLC. All Rights Reserved.