public class ProxyUtils extends Object
| Constructor and Description |
|---|
ProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMockName(Object object)
note: don't remove, used through reflection from
ObjectFormatter |
static StackTraceElement[] |
getProxiedMethodStackTrace()
First finds a trace element in which a cglib proxy method was invoked.
|
static Class<?> |
getProxiedTypeIfProxy(Object object) |
static boolean |
isProxy(Object instance) |
static boolean |
isProxyClassName(String className) |
public static Class<?> getProxiedTypeIfProxy(Object object)
object - The object to checkpublic static boolean isProxy(Object instance)
instance - The instance to check, not nullpublic static boolean isProxyClassName(String className)
className - The class name to check, not nullpublic static String getMockName(Object object)
ObjectFormatterobject - The object to checkpublic static StackTraceElement[] getProxiedMethodStackTrace()
Copyright © 2016. All Rights Reserved.