org.codehaus.groovy.runtime
Class ClosureListener

java.lang.Object
  extended byorg.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

Constructor Summary
ClosureListener(java.lang.String listenerMethodName, Closure closure)
           
 
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
 

Constructor Detail

ClosureListener

public ClosureListener(java.lang.String listenerMethodName,
                       Closure closure)
Method Detail

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-2004 The Codehaus. All Rights Reserved.