java.lang.reflect
Interface InvocationHandler
- All Known Implementing Classes:
- AnnotationInvocationHandler, CompositeDataInvocationHandler, EventHandler, MBeanServerInvocationHandler, RemoteObjectInvocationHandler
public interface InvocationHandler
InvocationHandler is an interface that provides an invoke method to
be used with a Proxy.
- Since:
- 1.3
invoke
Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
Handles method calls on a dynamically created Proxy.
- Parameters:
proxy - the proxy object on which the methode was invokedmethod - the method that was invokedargs - the arguments that were given to the method
- Returns:
- the return value from the invoked method, boxed in case
the return value is a primitive type.
- Throws:
Throwable - that is listed in the throws clause of the
invoked method or UndeclaredThrowableException in case the thrown
exception is not listed there.
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.