public abstract class AbstractWrapper extends Object implements Wrapper, P6Proxy
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrapper(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static boolean |
isProxy(Class<?> clazz)
Used to determine if the given class is a proxy class.
|
static boolean |
isProxy(Object obj)
Used to determine is a given object is a Proxy created by this proxy factory.
|
boolean |
isWrapperFor(Class<?> iface) |
<T> T |
unwrap(Class<T> iface) |
Object |
unwrapP6SpyProxy()
Returns the underlying object for the proxy.
|
protected AbstractWrapper(Object delegate)
public static boolean isProxy(Object obj)
obj
- the object in questionpublic static boolean isProxy(Class<?> clazz)
clazz
- the class in questionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public Object unwrapP6SpyProxy()
P6Proxy
Wrapper
interface instead!unwrapP6SpyProxy
in interface P6Proxy
Copyright © 2002-2016 P6Spy. All Rights Reserved.