net.sf.jga.swing
Class FunctorProxy.FunctorInvocationHandler

java.lang.Object
  extended by net.sf.jga.swing.FunctorProxy.FunctorInvocationHandler
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler
Enclosing class:
FunctorProxy

public static class FunctorProxy.FunctorInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable

The InvocationHandler for FunctorProxy instances. This handler allows individual methods to be mapped to Functors of the form UnaryFunctor. When the method (which must be an event notification method of one of the listener interfaces that the proxy object implements) is invoked, the event is passed to the appropriate functor for evaluation.

See Also:
Serialized Form

Method Summary
 java.lang.Object invoke(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object[] objectArray)
          Type-unsafe implementation of invoke, but invoke is an inherently un-typesafe operation anyway.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public java.lang.Object invoke(java.lang.Object object,
                               java.lang.reflect.Method method,
                               java.lang.Object[] objectArray)
                        throws java.lang.Throwable
Type-unsafe implementation of invoke, but invoke is an inherently un-typesafe operation anyway. Be careful to pass arguments of the correct type in the argument array, lest ClassCastExceptions be thrown.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2002-2006 David A. Hall. All Rights Reserved.