Package org.proxy4j.core
Interface ProxyInvocation<T>
-
- All Known Implementing Classes:
JavassistProxyInvocation
public interface ProxyInvocation<T>Describes a method invocation on a proxy.
- Since:
- 1.0
- Author:
- Brennan Spies
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getArguments()The arguments passed to the target proxy invocation.MethodgetMethod()Return the method on which the proxy invocation was made.TgetProxy()Returns the proxy on which the method was invoked.Objectinvoke(T target)Executes this invocation on a target object of the same type.
-
-
-
Method Detail
-
invoke
Object invoke(T target) throws Throwable
Executes this invocation on a target object of the same type.- Parameters:
target- The target- Returns:
- The return value of the invocation
- Throws:
Throwable- If an error is thrown by the invocation
-
getMethod
Method getMethod()
Return the method on which the proxy invocation was made.- Returns:
- The method
-
getProxy
T getProxy()
Returns the proxy on which the method was invoked.- Returns:
- The proxy
-
getArguments
Object[] getArguments()
The arguments passed to the target proxy invocation.- Returns:
- The arguments
-
-