D - public class CommonDataSourceInvocationHandler<Z extends CommonDataSource,D extends Database<Z>,F extends RootProxyFactory<Z,D>> extends ConnectionSourceInvocationHandler<Z,D,F>
logger| Modifier | Constructor and Description |
|---|---|
protected |
CommonDataSourceInvocationHandler(Class<Z> targetClass,
F factory) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationStrategy |
getInvocationStrategy(Z dataSource,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected <R> void |
postInvoke(Invoker<Z,D,Z,R,SQLException> invoker,
Z proxy,
Method method,
Object... parameters) |
getInvoker, getInvoker, getProxyFactory, getProxyFactoryFactory, invokeprotected CommonDataSourceInvocationHandler(Class<Z> targetClass, F factory)
protected InvocationStrategy getInvocationStrategy(Z dataSource, Method method, Object... parameters) throws SQLException
AbstractInvocationHandlerInvocationStrategy for the specified method.
This implementation detects Wrapper methods; and Object.equals(java.lang.Object), Object.hashCode(), and Object.toString().
Default invocation strategy is AllResultsCollector.getInvocationStrategy in class AbstractInvocationHandler<Z extends CommonDataSource,D extends Database<Z>,Z extends CommonDataSource,SQLException,F extends RootProxyFactory<Z,D>>dataSource - the proxied objectmethod - the method to invokeparameters - the method invocation parametersSQLExceptionprotected <R> void postInvoke(Invoker<Z,D,Z,R,SQLException> invoker, Z proxy, Method method, Object... parameters)
postInvoke in class AbstractInvocationHandler<Z extends CommonDataSource,D extends Database<Z>,Z extends CommonDataSource,SQLException,F extends RootProxyFactory<Z,D>>Copyright © 2004–2014 Paul Ferraro. All rights reserved.