This method of the Delegate class invokes the target method referenced by the Delegate on the target object referenced by the delegate with the given parameters. The parameters must be packaged as an Object array according to the rules of Java Reflection.
public final Object dynamicInvoke(Object[] args) throws IllegalArgumentException, InvocationTargetException;
args | Invocation of the target method. |
Returns null if the delegate type is void. For other delegate types, returns an Object that must be unwrapped or typecast to produce a correctly typed value.