org.codehaus.groovy.runtime
Class ClosureListener

java.lang.Object
  extended byorg.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: 1.2 $
Author:
James Strachan

Constructor Summary
ClosureListener(String listenerMethodName, Closure closure)
           
 
Method Summary
 Object invoke(Object object, Method method, Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosureListener

public ClosureListener(String listenerMethodName,
                       Closure closure)
Method Detail

invoke

public Object invoke(Object object,
                     Method method,
                     Object[] arguments)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2003-2007 The Codehaus. All Rights Reserved.