Class OfficeFloorThreadLocalDependency


  • public class OfficeFloorThreadLocalDependency
    extends java.lang.Object
    OfficeFloor ThreadLocal dependency.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 the SupplierThreadLocal of the current Thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OfficeFloorThreadLocalDependency

        public OfficeFloorThreadLocalDependency()
    • 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 the SupplierThreadLocal of the current Thread.
        Type Parameters:
        T - Dependency type.
        Parameters:
        type - Type.
        classLoader - ClassLoader.
        supplierThreadLocal - Supplier to provide the SupplierThreadLocal dependency.
        Returns:
        Static dependency.