Interface SupplierThreadLocal<T>
-
- All Superinterfaces:
java.util.function.Supplier<T>
- All Known Implementing Classes:
SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl
public interface SupplierThreadLocal<T> extends java.util.function.Supplier<T>
ProvidesThreadLocal
access to theManagedObject
object instances for theSuppliedManagedObjectSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get()
Obtains the object for the respectiveManagedObject
this represents.
-
-
-
Method Detail
-
get
T get()
Obtains the object for the respective
ManagedObject
this represents.This is only to be used within the
SuppliedManagedObjectSource
ManagedObject
implementations. Within this scope, the object will always be returned. Used outside this scope, the result is unpredictable.- Specified by:
get
in interfacejava.util.function.Supplier<T>
- Returns:
- Object from the
ManagedObject
.
-
-