| java.lang.reflect.InvocationHandler
All known Subclasses: java.rmi.server.RemoteObjectInvocationHandler, java.beans.EventHandler,
InvocationHandler | public interface InvocationHandler (Code) | | Implementors of this interface decode and dispatch methods sent to proxy
instances.
See Also: Proxy |
Method Summary | |
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. Parameters: method - the Method invoked on the proxy instance. Parameters: args - an array of objects containing the parameters passed to themethod, or null if no arguments are expected. |
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code) | | 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. Parameters: method - the Method invoked on the proxy instance. Parameters: args - an array of objects containing the parameters passed to themethod, or null if no arguments are expected. primitive typesare wrapped in the appropriate class. the result of executing the method throws: Throwable - if an exception was thrown by the invoked method. Theexception must match one of the declared exception types forthe invoked method or any unchecked exception type. If notthen an UndeclaredThrowableException is thrown. |
|
|