protected class WrapperBase.ConnectionErrorFiringInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.Object |
invokeOn |
| Constructor and Description |
|---|
ConnectionErrorFiringInvocationHandler(java.lang.Object toInvokeOn) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
private java.lang.Object |
proxyIfInterfaceIsJdbc(java.lang.Object toProxy,
java.lang.Class<?> clazz)
Recursively checks for interfaces on the given object to determine
if it implements a java.sql interface, and if so, proxies the
instance so that we can catch and fire SQL errors.
|
public ConnectionErrorFiringInvocationHandler(java.lang.Object toInvokeOn)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwableprivate java.lang.Object proxyIfInterfaceIsJdbc(java.lang.Object toProxy,
java.lang.Class<?> clazz)
toProxy - object to be proxiedclazz - desired class