Interface SupplierThreadLocal<T>
- All Superinterfaces:
Supplier<T>
- All Known Implementing Classes:
SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl
Provides
ThreadLocal access to the ManagedObject object
instances for the SuppliedManagedObjectSource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionget()Obtains the object for the respectiveManagedObjectthis represents.
-
Method Details
-
get
T get()Obtains the object for the respective
ManagedObjectthis represents.This is only to be used within the
SuppliedManagedObjectSourceManagedObjectimplementations. Within this scope, the object will always be returned. Used outside this scope, the result is unpredictable.- Specified by:
getin interfaceSupplier<T>- Returns:
- Object from the
ManagedObject.
-