org.codehaus.groovy.grails.web.metaclass
Class ChainDynamicMethod

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
      extended by org.codehaus.groovy.grails.web.metaclass.ChainDynamicMethod
All Implemented Interfaces:
DynamicMethodInvocation

public class ChainDynamicMethod
extends AbstractDynamicMethodInvocation

Implements the "chain" Controller method for action chaining

Since:
0.2 Created: Oct 27, 2005
Author:
Graeme Rocher

Field Summary
static String ARGUMENT_ACTION
           
static String ARGUMENT_CONTROLLER
           
static String ARGUMENT_ERRORS
           
static String ARGUMENT_ID
           
static Object ARGUMENT_MODEL
           
static String ARGUMENT_PARAMS
           
static Pattern METHOD_PATTERN
           
static String METHOD_SIGNATURE
           
static String PROPERTY_CHAIN_MODEL
           
 
Constructor Summary
ChainDynamicMethod()
           
 
Method Summary
 GrailsScaffolder getScaffolderForController(String controllerName, GrailsWebRequest webRequest)
           
 Object invoke(Object target, String methodName, Object[] arguments)
          Invokes the actual method.
 
Methods inherited from class org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
getPattern, isMethodMatch, setPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_SIGNATURE

public static final String METHOD_SIGNATURE
See Also:
Constant Field Values

METHOD_PATTERN

public static final Pattern METHOD_PATTERN

ARGUMENT_CONTROLLER

public static final String ARGUMENT_CONTROLLER
See Also:
Constant Field Values

ARGUMENT_ACTION

public static final String ARGUMENT_ACTION
See Also:
Constant Field Values

ARGUMENT_ID

public static final String ARGUMENT_ID
See Also:
Constant Field Values

ARGUMENT_PARAMS

public static final String ARGUMENT_PARAMS
See Also:
Constant Field Values

ARGUMENT_ERRORS

public static final String ARGUMENT_ERRORS
See Also:
Constant Field Values

ARGUMENT_MODEL

public static final Object ARGUMENT_MODEL

PROPERTY_CHAIN_MODEL

public static final String PROPERTY_CHAIN_MODEL
See Also:
Constant Field Values
Constructor Detail

ChainDynamicMethod

public ChainDynamicMethod()
Method Detail

invoke

public Object invoke(Object target,
                     String methodName,
                     Object[] arguments)
Description copied from interface: DynamicMethodInvocation

Invokes the actual method. The target object and arguments are supplied.

Specified by:
invoke in interface DynamicMethodInvocation
Specified by:
invoke in class AbstractDynamicMethodInvocation
Parameters:
target - the target on which the method is invoked.
arguments - the arguments passed in the method call @return the return value of the dynamic method invocation.

getScaffolderForController

public GrailsScaffolder getScaffolderForController(String controllerName,
                                                   GrailsWebRequest webRequest)


Copyright (c) 2005-2006 The Grails project