org.codehaus.groovy.grails.commons.metaclass
Class AbstractDynamicMethodInvocation
java.lang.Object
org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
- All Implemented Interfaces:
- DynamicMethodInvocation
- Direct Known Subclasses:
- AbstractDynamicControllerMethod, AbstractDynamicPersistentMethod, BindDynamicMethod, RedirectDynamicMethod, RenderDynamicMethod
public abstract class AbstractDynamicMethodInvocation
- extends java.lang.Object
- implements DynamicMethodInvocation
- Since:
- Aug 7, 2005
- Author:
- Steven Devijver, Graeme Rocher
Method Summary |
protected java.util.regex.Pattern |
getPattern()
|
abstract java.lang.Object |
invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] arguments)
Invokes the actual method. |
boolean |
isMethodMatch(java.lang.String methodName)
Checks if a method name matches the criteria of the implementation class. |
void |
setPattern(java.util.regex.Pattern pattern)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDynamicMethodInvocation
public AbstractDynamicMethodInvocation(java.util.regex.Pattern pattern)
setPattern
public void setPattern(java.util.regex.Pattern pattern)
getPattern
protected java.util.regex.Pattern getPattern()
isMethodMatch
public boolean isMethodMatch(java.lang.String methodName)
- Description copied from interface:
DynamicMethodInvocation
Checks if a method name matches the criteria of the implementation class.
- Specified by:
isMethodMatch
in interface DynamicMethodInvocation
- Parameters:
methodName
- the static method name
- Returns:
- result of criteria match test
invoke
public abstract java.lang.Object invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] arguments)
- Description copied from interface:
DynamicMethodInvocation
Invokes the actual method. The target object and arguments are supplied.
- Specified by:
invoke
in interface DynamicMethodInvocation
- 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.
Copyright (c) 2005-2006 The Grails project