public class JavassistProxyInvocation<T> extends Object implements ProxyInvocation<T>
A Javassist implementation of ProxyInvocation.
| Constructor and Description |
|---|
JavassistProxyInvocation(T proxy,
Method method,
Object[] args) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArguments()
The arguments passed to the target proxy invocation.
|
Method |
getMethod()
Return the method on which the proxy invocation was made.
|
T |
getProxy()
Returns the proxy on which the method was invoked.
|
Object |
invoke(T target)
Executes this invocation on a target object of the same type.
|
public Object invoke(T target) throws Throwable
invoke in interface ProxyInvocation<T>target - The targetThrowable - If an error is thrown by the invocationpublic Method getMethod()
getMethod in interface ProxyInvocation<T>public T getProxy()
getProxy in interface ProxyInvocation<T>public Object[] getArguments()
getArguments in interface ProxyInvocation<T>Copyright © 2014. All rights reserved.