Package net.officefloor.frame.api.build
Interface ThreadDependencyMappingBuilder
-
- All Superinterfaces:
DependencyMappingBuilder
- All Known Implementing Classes:
DependencyMappingBuilderImpl
public interface ThreadDependencyMappingBuilder extends DependencyMappingBuilder
Provides additional means to obtain the
ManagedObject
fromThreadLocal
.This is typically used for integrating third party libraries that expect to obtain objects from
ThreadLocal
state.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> OptionalThreadLocal<T>
getOptionalThreadLocal()
Obtains theOptionalThreadLocal
for theManagedObject
.-
Methods inherited from interface net.officefloor.frame.api.build.DependencyMappingBuilder
mapDependency, mapDependency, mapGovernance, preLoadAdminister
-
-
-
-
Method Detail
-
getOptionalThreadLocal
<T> OptionalThreadLocal<T> getOptionalThreadLocal()
Obtains theOptionalThreadLocal
for theManagedObject
.- Type Parameters:
T
- Type of object.- Returns:
OptionalThreadLocal
for theManagedObject
.
-
-