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