|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.support.ThreadSpecificProxyFactory<T>
public class ThreadSpecificProxyFactory<T>
Thread-specific proxy is used to create implementations of interfaces that delegate to a thread-specific implementation of the service. It is used for instance to pass a transaction scoped entity manager around.
| Constructor Summary | |
|---|---|
ThreadSpecificProxyFactory(java.lang.Class<T> aClass)
Constructs the factory. |
|
| Method Summary | |
|---|---|
T |
getProxy()
Gets the proxy that delegates to the thread-specific instance set by set(Object) |
void |
set(T aService)
Sets the thread-specific service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadSpecificProxyFactory(java.lang.Class<T> aClass)
aClass - Interface class of the service to proxy.| Method Detail |
|---|
public void set(T aService)
aService - Service, use null value to reset.public T getProxy()
set(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||