com.calitha.concurrent
Class RWLockInvocationHandler
java.lang.Object
com.calitha.concurrent.RWLockInvocationHandler
- All Implemented Interfaces:
- InvocationHandler
public class RWLockInvocationHandler
- extends Object
- implements InvocationHandler
A RWLockInvocationHandler is used in a proxy to create
and use read and write locks by looking at the RWLock annotations.
Example code to create a proxy for current 'this' object that implements IRWTest:
IRWTest test = LockProxyFactory.createReadWriteLockProxy(this, IRWTest.class);
- Author:
- Robert van Loenhout
- See Also:
RWLock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RWLockInvocationHandler
public RWLockInvocationHandler(Object realObject)
invoke
public Object invoke(Object proxy,
Method m,
Object[] args)
throws IllegalAccessException,
InvocationTargetException
- Specified by:
invoke in interface InvocationHandler
- Throws:
IllegalAccessException
InvocationTargetException