Package | Description |
---|---|
javassist.util.proxy |
Dynamic proxy (similar to
Enhancer of cglib). |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RuntimeSupport.DefaultMethodHandler |
Modifier and Type | Field and Description |
---|---|
static MethodHandler |
RuntimeSupport.default_interceptor
A method handler that only executes a method.
|
private MethodHandler |
SerializedProxy.handler |
private MethodHandler |
ProxyFactory.handler |
Modifier and Type | Method and Description |
---|---|
MethodHandler |
ProxyObject.getHandler()
Get the handler.
|
static MethodHandler |
ProxyFactory.getHandler(Proxy p)
Obtains the method handler of the given proxy object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ProxyFactory.create(java.lang.Class[] paramTypes,
java.lang.Object[] args,
MethodHandler mh)
Creates a proxy class and returns an instance of that class.
|
void |
ProxyObject.setHandler(MethodHandler mi)
Sets a handler.
|
void |
ProxyFactory.setHandler(MethodHandler mi)
Deprecated.
since 3.12
use of this method is incompatible with proxy class caching.
instead clients should call method
Proxy.setHandler(MethodHandler) to set the handler
for each newly created proxy instance.
calling this method will automatically disable caching of classes created by the proxy factory. |
void |
Proxy.setHandler(MethodHandler mi)
Sets a handler.
|
Constructor and Description |
---|
SerializedProxy(java.lang.Class proxy,
byte[] sig,
MethodHandler h) |