org.codehaus.groovy.runtime
Class ClosureListener

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

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


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