Package net.officefloor.dependency
Class OfficeFloorThreadLocalDependency
- java.lang.Object
-
- net.officefloor.dependency.OfficeFloorThreadLocalDependency
-
public class OfficeFloorThreadLocalDependency extends java.lang.ObjectOfficeFloorThreadLocaldependency.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorThreadLocalDependency()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TnewStaticProxy(java.lang.Class<? extends T> type, java.lang.ClassLoader classLoader, java.util.function.Supplier<? extends T> supplierThreadLocal)Creates a proxy dependency that delegates to theSupplierThreadLocalof the currentThread.
-
-
-
Method Detail
-
newStaticProxy
public static <T> T newStaticProxy(java.lang.Class<? extends T> type, java.lang.ClassLoader classLoader, java.util.function.Supplier<? extends T> supplierThreadLocal)Creates a proxy dependency that delegates to theSupplierThreadLocalof the currentThread.- Type Parameters:
T- Dependency type.- Parameters:
type- Type.classLoader-ClassLoader.supplierThreadLocal-Supplierto provide theSupplierThreadLocaldependency.- Returns:
- Static dependency.
-
-