org.outerj.xreporter.util
Class AbstractInvocationHandler

java.lang.Object
  extended byorg.outerj.xreporter.util.AbstractInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Direct Known Subclasses:
CheckLockedInvocationHandler, ResetTimeoutInvocationHandler

public abstract class AbstractInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Abstract base class for InvocationHandler's. Implement the doInvoke method in subclasses.


Field Summary
protected static java.lang.reflect.Method equalsMethod
           
protected static java.lang.reflect.Method hashCodeMethod
           
protected static java.lang.reflect.Method toStringMethod
           
 
Constructor Summary
AbstractInvocationHandler()
           
 
Method Summary
abstract  java.lang.Object doInvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  java.lang.Boolean proxyEquals(java.lang.Object proxy, java.lang.Object other)
           
protected  java.lang.Integer proxyHashCode(java.lang.Object proxy)
           
protected  java.lang.String proxyToString(java.lang.Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCodeMethod

protected static java.lang.reflect.Method hashCodeMethod

equalsMethod

protected static java.lang.reflect.Method equalsMethod

toStringMethod

protected static java.lang.reflect.Method toStringMethod
Constructor Detail

AbstractInvocationHandler

public AbstractInvocationHandler()
Method Detail

doInvoke

public abstract java.lang.Object doInvoke(java.lang.Object proxy,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] args)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

proxyHashCode

protected java.lang.Integer proxyHashCode(java.lang.Object proxy)

proxyEquals

protected java.lang.Boolean proxyEquals(java.lang.Object proxy,
                                        java.lang.Object other)

proxyToString

protected java.lang.String proxyToString(java.lang.Object proxy)