org.outerj.xreporter.report.instance
Class ResetTimeoutInvocationHandler

java.lang.Object
  extended byorg.outerj.xreporter.util.AbstractInvocationHandler
      extended byorg.outerj.xreporter.report.instance.ResetTimeoutInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ResetTimeoutInvocationHandler
extends AbstractInvocationHandler

This is an invocation handler that will sit between the user of the Report interface and the actual ReportImpl. It will reset the "last accessed time" of the report each time a method is called.


Field Summary
protected  ReportImpl instance
           
protected  Report next
           
 
Fields inherited from class org.outerj.xreporter.util.AbstractInvocationHandler
equalsMethod, hashCodeMethod, toStringMethod
 
Constructor Summary
ResetTimeoutInvocationHandler()
           
 
Method Summary
 java.lang.Object doInvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class org.outerj.xreporter.util.AbstractInvocationHandler
invoke, proxyEquals, proxyHashCode, proxyToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected ReportImpl instance

next

protected Report next
Constructor Detail

ResetTimeoutInvocationHandler

public ResetTimeoutInvocationHandler()
Method Detail

doInvoke

public java.lang.Object doInvoke(java.lang.Object proxy,
                                 java.lang.reflect.Method method,
                                 java.lang.Object[] args)
                          throws java.lang.Throwable
Specified by:
doInvoke in class AbstractInvocationHandler
Throws:
java.lang.Throwable