Android
java.lang.reflect
public interface

java.lang.reflect.InvocationHandler

java.lang.reflect.InvocationHandler

Implementors of this interface decode and dispatch methods sent to proxy instances.

See Also

Summary

Public Methods

          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.

Details

Public Methods

public 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.

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48