Class ThreadLocalImpl.OptionalThreadLocalImpl<T>
- java.lang.Object
- 
- net.officefloor.frame.impl.execute.thread.ThreadLocalImpl.OptionalThreadLocalImpl<T>
 
- 
- All Implemented Interfaces:
- OptionalThreadLocal<T>
 - Enclosing class:
- ThreadLocalImpl<T>
 
 public static class ThreadLocalImpl.OptionalThreadLocalImpl<T> extends java.lang.Object implements OptionalThreadLocal<T> OptionalThreadLocalimplementation.
- 
- 
Constructor SummaryConstructors Constructor Description OptionalThreadLocalImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Obtains the object for the respectiveManagedObjectthis represents.
 
- 
- 
- 
Method Detail- 
getpublic T get() Description copied from interface:OptionalThreadLocalObtains the object for the respective ManagedObjectthis represents.This is optional, for if the ManagedObjectis not yet instantiated then this will returnnull. AsManagedObjectinstances are asynchronously loaded, they can not be loaded synchronously for this method. Hence, it may returnnullif theManagedObjecthas not been required as a dependency.To ensure the ManagedObjectis available, have theManagedFunctionorManagedObjectusing thisOptionalThreadLocaldepend on theManagedObjectthis represents.- Specified by:
- getin interface- OptionalThreadLocal<T>
- Returns:
- Object from the ManagedObjectornullifManagedObjectnot instantiated yet.
 
 
- 
 
-