org.codehaus.groovy.grails.web.servlet.mvc
Class ClosureGrailsControllerHelper

java.lang.Object
  extended by org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper
      extended by org.codehaus.groovy.grails.web.servlet.mvc.ClosureGrailsControllerHelper
All Implemented Interfaces:
org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class ClosureGrailsControllerHelper
extends AbstractGrailsControllerHelper

Implements action invokation throught Closure.

Since:
2.0

Field Summary
 
Fields inherited from class org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper
application, applicationContext, grailsAttributes, servletContext
 
Constructor Summary
ClosureGrailsControllerHelper()
           
 
Method Summary
protected  java.lang.Object invoke(groovy.lang.GroovyObject controller, java.lang.Object action)
           
protected  groovy.lang.Closure<?> retrieveAction(groovy.lang.GroovyObject controller, java.lang.String actionName, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper
executeAction, getControllerClassByName, getControllerClassByURI, getControllerInstance, getGrailsAttributes, getServletContext, handleAction, handleAction, handleActionResponse, handleURI, handleURI, setApplicationContext, setGrailsApplication, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosureGrailsControllerHelper

public ClosureGrailsControllerHelper()
Method Detail

retrieveAction

protected groovy.lang.Closure<?> retrieveAction(groovy.lang.GroovyObject controller,
                                                java.lang.String actionName,
                                                javax.servlet.http.HttpServletResponse response)
Specified by:
retrieveAction in class AbstractGrailsControllerHelper

invoke

protected java.lang.Object invoke(groovy.lang.GroovyObject controller,
                                  java.lang.Object action)
Specified by:
invoke in class AbstractGrailsControllerHelper