com.calitha.concurrent
Class RWLockInvocationHandler

java.lang.Object
  extended by 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

Constructor Summary
RWLockInvocationHandler(Object realObject)
           
 
Method Summary
 Object invoke(Object proxy, Method m, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RWLockInvocationHandler

public RWLockInvocationHandler(Object realObject)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws IllegalAccessException,
                     InvocationTargetException
Specified by:
invoke in interface InvocationHandler
Throws:
IllegalAccessException
InvocationTargetException