X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=test%2Fenterprise%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsupport%2FThreadSpecificProxyFactory.java;h=26a7610450991d92e5a4619cd6cafd273f0b0e36;hb=ec9582b50e9c74b08b14c79d7d16de5d0fc2851e;hp=02668cdc9cbb3cdfbf04437e5c2c32778b0d4543;hpb=c63e76e400f06f51ba235b9e6658bfa3149c1d48;p=utils diff --git a/test/enterprise/src/main/java/org/wamblee/support/ThreadSpecificProxyFactory.java b/test/enterprise/src/main/java/org/wamblee/support/ThreadSpecificProxyFactory.java index 02668cdc..26a76104 100644 --- a/test/enterprise/src/main/java/org/wamblee/support/ThreadSpecificProxyFactory.java +++ b/test/enterprise/src/main/java/org/wamblee/support/ThreadSpecificProxyFactory.java @@ -26,6 +26,12 @@ import java.lang.reflect.Proxy; * * It is used for instance to pass a transaction scoped entity manager around. * + * The {@link #set(Object)} method sets the current service instance for the current thread. + * The {@link #get()} method gets the current service instance for the current thread. + * The {@link #getProxy()} method gets a proxy that will delegate at runtime to the thread-specific + * instance. The result from this method can be passed at construction of an object that will be used + * by multiple threads. + * * @param T * Interface to proxy. * @author Erik Brakkee