java.lang.reflect
Interface InvocationHandler
public interface InvocationHandler
Implementors of this interface decode and dispatch methods sent to proxy
instances.
- See Also:
Proxy
|
Method Summary |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Return the result of decoding and dispatching the method which was
originally sent to the proxy instance. |
invoke
Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Return the result of decoding and dispatching the method which was
originally sent to the proxy instance.
- Parameters:
proxy - the proxy instance which was the receiver of the method.method - the Method invoked on the proxy instance.args - an array of objects containing the parameters passed to the
method, or null if no arguments are expected. primitive types
are wrapped in the appropriate class.
- Returns:
- the result of executing the method
- Throws:
Throwable - if an exception was thrown by the invoked method. The
exception must match one of the declared exception types for
the invoked method or any unchecked exception type. If not
then an UndeclaredThrowableException is thrown.
Please submit a feedback, bug or feature