@groovy.transform.CompileStatic class ProxyUtils extends java.lang.Object
Utility methods for unproxying classes.
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static boolean |
isCglibProxyClass(java.lang.Class<?> clazz) |
|
protected static boolean |
isJavassistProxy(java.lang.Class<?> clazz) |
|
static boolean |
isProxy(java.lang.Class<?> clazz) |
|
static java.lang.Class<?> |
unproxy(java.lang.Class<?> clazz)Finds the unproxied superclass if proxied. |
|
static java.lang.reflect.Method |
unproxy(java.lang.reflect.Method method)Finds the method in the unproxied superclass if proxied. |
|
static java.lang.reflect.Constructor<?> |
unproxy(java.lang.reflect.Constructor<?> constructor)Finds the constructor in the unproxied superclass if proxied. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Finds the unproxied superclass if proxied.
clazz - the potentially proxied classFinds the method in the unproxied superclass if proxied.
method - the methodFinds the constructor in the unproxied superclass if proxied.
constructor - the constructor