Class ProxyUtil

java.lang.Object
ca.uhn.fhir.util.ProxyUtil

public class ProxyUtil extends Object
  • Method Details

    • synchronizedProxy

      public static <T> T synchronizedProxy(Class<T> theClass, T theInstance)
      Wrap theInstance in a Proxy that synchronizes every method.
      Type Parameters:
      T - the interface type
      Parameters:
      theClass - the target interface
      theInstance - the instance to wrap
      Returns:
      a Proxy implementing theClass interface that syncronizes every call on theInstance