Modifier and Type | Method and Description |
---|---|
static String |
identityToStringOf(Object target)
identityToStringOf.
|
static <T> T |
proxy(ClassLoader loader,
InvocationHandler handler,
Class<T> firstInterface,
Class<?>... otherInterfaces)
|
static <T> T |
proxy(InvocationHandler handler,
Class<T> firstInterface,
Class<?>... otherInterfaces)
proxy.
|
public static <T> T proxy(InvocationHandler handler, Class<T> firstInterface, Class<?>... otherInterfaces)
proxy.
T
- a T object.handler
- the InvocationHandler
firstInterface
- return
will be cast to this interfaceotherInterfaces
- optional additional interfacesuses
{@link java.lang.ClassLoader#getSystemClassLoader()}
public static <T> T proxy(ClassLoader loader, InvocationHandler handler, Class<T> firstInterface, Class<?>... otherInterfaces)
T
- a T object.loader
- the ClassLoader
to usehandler
- the InvocationHandler
firstInterface
- return
will be cast to this interfaceotherInterfaces
- optional additional interfacesCopyright © 2018 earcam. All rights reserved.