Package ca.uhn.fhir.util
Class ProxyUtil
java.lang.Object
ca.uhn.fhir.util.ProxyUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
synchronizedProxy
(Class<T> theClass, T theInstance) Wrap theInstance in a Proxy that synchronizes every method.
-
Method Details
-
synchronizedProxy
Wrap theInstance in a Proxy that synchronizes every method.- Type Parameters:
T
- the interface type- Parameters:
theClass
- the target interfacetheInstance
- the instance to wrap- Returns:
- a Proxy implementing theClass interface that syncronizes every call on theInstance
-