Class SpringObjectCaster

java.lang.Object
ca.uhn.fhir.jpa.util.SpringObjectCaster

public class SpringObjectCaster extends Object
Utility to get the Spring proxy object's target object
  • Constructor Details

  • Method Details

    • getTargetObject

      public static <T> T getTargetObject(Object proxy, Class<T> clazz) throws Exception
      Retrieve the Spring proxy object's target object
      Type Parameters:
      T -
      Parameters:
      proxy -
      clazz -
      Returns:
      Throws:
      Exception