Interface CallbackHandler
- All Known Implementing Classes:
BatchCallbackHandler
,ConnectionCallbackHandler
,ConnectionFactoryCallbackHandler
,ResultCallbackHandler
,RowCallbackHandler
,RowSegmentCallbackHandler
,StatementCallbackHandler
public interface CallbackHandler
Callback logic for proxy invocation.
The logic is separated from proxy handler to implementation of this interface
in order to be reused in different proxy mechanism (JDK dynamic proxy, cglib, etc).
- Author:
- Tadaya Tsuyukubo
-
Method Summary
-
Method Details
-
invoke
When proxy is invoked, actual implementation of the proxy handler delegates the invocation to this method.- Parameters:
proxy
- the proxy instance that the method was invoked onmethod
- the method that has invoked on the proxy instanceargs
- an array of objects that has passed to the method invocation. this can benull
when method is invoked with no argument.- Returns:
- result returned from the method invocation on the proxy instance. (can be
null
.) - Throws:
Throwable
- the exception thrown from the method invocation on the proxy instance.IllegalArgumentException
- ifproxy
isnull
IllegalArgumentException
- ifmethod
isnull
-