|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.concurrent.LockProxyFactory
public final class LockProxyFactory
Factory for creating object with automatic locking.
| Method Summary | ||
|---|---|---|
static
|
createReadWriteLockProxy(T obj,
Class<T> clazz)
Creates a proxy that uses the annotations on methods to use a read or write lock. |
|
static
|
createSynchronizedProxy(T obj,
Class<T> clazz)
Creates a proxy that uses synchronized on each method for locking. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T createReadWriteLockProxy(T obj,
Class<T> clazz)
obj - object for which the proxy must be createdclazz - proxy interface class
public static <T> T createSynchronizedProxy(T obj,
Class<T> clazz)
obj - object for which the proxy must be createdclazz - proxy interface class
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||