public class ProxyMethodHandler extends Object implements javassist.util.proxy.MethodHandler
| Constructor and Description |
|---|
ProxyMethodHandler(Object root,
Class<?> interfaceClass,
Object interfaceImpl)
Constructs a MethodHandler that serves as a Proxy for method calls on the specified root object and a
specified interface.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object o,
Method method,
Method method2,
Object[] args) |
boolean |
methodCanBeHandledByInterface(Method method) |
public ProxyMethodHandler(Object root, Class<?> interfaceClass, Object interfaceImpl) throws Exception
root - the root object whose methods are to be supported by this proxy.interfaceClass - interface class whose methods are to be supported by this proxy.interfaceImpl - implementation of interfaceClass. Calls that are satisfied by it's interface are delegated to this object.ExceptionCopyright © 2017. All rights reserved.