Class ProxyUtils

java.lang.Object
org.springframework.data.util.ProxyUtils

public abstract class ProxyUtils extends Object
Proxy type detection utilities, extensible via ProxyUtils.ProxyDetector registered via Spring factories.
Author:
Oliver Gierke
  • Method Details

    • getUserClass

      public static Class<?> getUserClass(Class<?> type)
      Returns the user class for the given type.
      Parameters:
      type - must not be null.
      Returns:
    • getUserClass

      public static Class<?> getUserClass(Object source)
      Returns the user class for the given source object.
      Parameters:
      source - must not be null.
      Returns: