Package org.atmosphere.util
Class ThreadLocalProxy<T>
java.lang.Object
org.atmosphere.util.ThreadLocalProxy<T>
- Type Parameters:
T- the type of the proxied instance
- All Implemented Interfaces:
InvocationHandler
An
InvocationHandler that delegates method calls to a thread-local instance.
Used for request-scoped dependency injection via dynamic proxies.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadLocalProxy
public ThreadLocalProxy()
-
-
Method Details
-
set
-
get
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-