com.calitha.concurrent
Class LockInvocationHandler

java.lang.Object
  extended by com.calitha.concurrent.LockInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class LockInvocationHandler
extends Object
implements InvocationHandler

A LockInvocationHandler is used in a proxy to create and use mutually exclusive locks.

Author:
Robert van Loenhout
See Also:
RWLockInvocationHandler

Constructor Summary
LockInvocationHandler(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

LockInvocationHandler

public LockInvocationHandler(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