org.codehaus.groovy.runtime
Class ClosureListener
java.lang.Object
org.codehaus.groovy.runtime.ClosureListener
- All Implemented Interfaces:
- InvocationHandler
public class ClosureListener
- extends Object
- implements InvocationHandler
Represents a method on an object using a closure which can be invoked at any
time
- Version:
- $Revision: 2121 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClosureListener
public ClosureListener(String listenerMethodName,
Closure closure)
invoke
public Object invoke(Object object,
Method method,
Object[] arguments)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
Copyright © 2003-2009 The Codehaus. All Rights Reserved.