invoke
public Object invoke(Object proxy,
Object underlying,
Method method,
Object[] args)
throws Throwable
Description copied from interface: Delegate
Called by the invocation handler instead of the target method. Since this method is called
instead of the target method, it is up to implementations to invoke the target method (if applicable).
- Specified by:
invoke
in interface Delegate
- Parameters:
proxy
- The proxyunderlying
- The proxied objectmethod
- The method that was invokedargs
- The arguments of the method (if any). This argument will be null if there
were no arguments.
- Returns:
- The return value of the method
- Throws:
Throwable