public class ClosureInvokingDynamicMethod extends java.lang.Object
An implementation of DynamicMethodInvocation that invokes a closure.
Constructor and description |
---|
ClosureInvokingDynamicMethod
(java.lang.String pattern, groovy.lang.Closure<?> closure) |
Type | Name and description |
---|---|
protected java.lang.Object |
clone() For thread safety when using a ClosureInvokingDynamicMethod it should ALWAYS be cloned first Weird behaviour will occur if a unique cloned instance is not used for each invocation |
java.lang.Object |
invoke(java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments) |
java.lang.Object |
invoke(java.lang.Object target, java.lang.String methodName, java.lang.Object[] arguments) |
boolean |
isMethodMatch(java.lang.String methodName) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
For thread safety when using a ClosureInvokingDynamicMethod it should ALWAYS be cloned first Weird behaviour will occur if a unique cloned instance is not used for each invocation