Class SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl<T>
- java.lang.Object
-
- net.officefloor.compile.impl.supplier.SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl<T>
-
- All Implemented Interfaces:
java.util.function.Supplier<T>
,SupplierThreadLocal<T>
- Enclosing class:
- SupplierThreadLocalTypeImpl<T>
public static class SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl<T> extends java.lang.Object implements SupplierThreadLocal<T>
SupplierThreadLocal
implementation.
-
-
Constructor Summary
Constructors Constructor Description SupplierThreadLocalImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Obtains the object for the respectiveManagedObject
this represents.
-
-
-
Method Detail
-
get
public T get()
Description copied from interface:SupplierThreadLocal
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>
- Specified by:
get
in interfaceSupplierThreadLocal<T>
- Returns:
- Object from the
ManagedObject
.
-
-