public class ProxyFactory extends Object
Constructor and Description |
---|
ProxyFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createProxy(T underlying,
GenericInvocationHandler<T> invocationHandler)
Creates a proxy for the given object delegating all method calls to the invocation handler.
|
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.
|
public static <T> T createProxy(T underlying, GenericInvocationHandler<T> invocationHandler)
underlying
- the object to proxyinvocationHandler
- the invocation handlerpublic static boolean isProxy(Object obj)
obj
- the object in questionpublic static boolean isProxy(Class<?> clazz)
clazz
- the class in questionCopyright © 2002-2016 P6Spy. All Rights Reserved.