org.outerj.xreporter.report.instance
Class CheckLockedInvocationHandler
java.lang.Object
org.outerj.xreporter.util.AbstractInvocationHandler
org.outerj.xreporter.report.instance.CheckLockedInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
- public class CheckLockedInvocationHandler
- extends AbstractInvocationHandler
This is an invocation handler that will sit between the user of the Report
interface and the actual ReportImpl. It will check wether the report has not
yet been released, so that it is impossible to call methods on a report after it has
been released.
|
Method Summary |
java.lang.Object |
doInvoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
releaseMethod
protected java.lang.reflect.Method releaseMethod
instance
protected Report instance
isLocked
protected boolean isLocked
CheckLockedInvocationHandler
public CheckLockedInvocationHandler()
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