org.kuali.rice.core.util.reflect
Class BaseInvocationHandler

java.lang.Object
  extended by org.kuali.rice.core.util.reflect.BaseInvocationHandler
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
AsynchronousServiceCallProxy, BaseTargetedInvocationHandler, DelayedAsynchronousServiceCallProxy

public abstract class BaseInvocationHandler
extends Object
implements InvocationHandler

An abstract base class for InvocationHanlders which can be used to implement an InvocationHandler that delegates hashCode and equals methods to the proxied

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static Method equalsMethod
           
private static Method hashCodeMethod
           
 
Constructor Summary
BaseInvocationHandler()
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] arguments)
           
protected abstract  Object invokeInternal(Object proxy, Method method, Object[] arguments)
           
protected  Boolean proxyEquals(Object proxy, Object other)
           
protected  Integer proxyHashCode(Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCodeMethod

private static Method hashCodeMethod

equalsMethod

private static Method equalsMethod
Constructor Detail

BaseInvocationHandler

public BaseInvocationHandler()
Method Detail

invoke

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

invokeInternal

protected abstract Object invokeInternal(Object proxy,
                                         Method method,
                                         Object[] arguments)
                                  throws Throwable
Throws:
Throwable

proxyHashCode

protected Integer proxyHashCode(Object proxy)

proxyEquals

protected Boolean proxyEquals(Object proxy,
                              Object other)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.