T - The type of the "wrapped" target.
| Name | Mode | Type | isHidden | isBound | isConstrained |
|---|---|---|---|---|---|
| target | R | T | false | false | false |
public class InterceptingInvocationHandler<T> extends DefaultInvocationHandler
InvocationHandler
implementation.| Constructor and Description |
|---|
InterceptingInvocationHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] argv)
Subclasses may declare methods with the same signature of a proxied
interface method which will be invoked (as a sort of listener) before
invoking the target method.
|
getImplementedInterfacesOf, getProxyClass, newProxyInstancepublic InterceptingInvocationHandler()
public Object invoke(Object proxy, Method method, Object[] argv) throws Throwable
Method's
declaring class is assignable from the target's class, the
Method is invoked on the target.invoke in interface DefaultInterfaceMethodInvocationHandlerinvoke in interface InvocationHandlerinvoke in class DefaultInvocationHandlerproxy - The proxy instance.method - The Method.argv - The argument array.Method invocation.Exception - If the Method cannot be invoked.ThrowableCopyright © 2015–2021. All rights reserved.