public class DataSourceInvocationHandler extends CommonDataSourceInvocationHandler<DataSource,DataSourceDatabase,DataSourceProxyFactory>
logger
Constructor and Description |
---|
DataSourceInvocationHandler(DataSourceProxyFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy |
getInvocationStrategy(DataSource dataSource,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected ProxyFactoryFactory<DataSource,DataSourceDatabase,DataSource,SQLException,?,? extends Exception> |
getProxyFactoryFactory(DataSource object,
Method method,
Object... parameters) |
postInvoke
getInvoker, getInvoker, getProxyFactory, invoke
public DataSourceInvocationHandler(DataSourceProxyFactory factory)
protected InvocationStrategy getInvocationStrategy(DataSource dataSource, Method method, Object... parameters) throws SQLException
InvocationStrategy
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 CommonDataSourceInvocationHandler<DataSource,DataSourceDatabase,DataSourceProxyFactory>
dataSource
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersSQLException
CommonDataSourceInvocationHandler.getInvocationStrategy(javax.sql.CommonDataSource, java.lang.reflect.Method, java.lang.Object[])
protected ProxyFactoryFactory<DataSource,DataSourceDatabase,DataSource,SQLException,?,? extends Exception> getProxyFactoryFactory(DataSource object, Method method, Object... parameters) throws SQLException
getProxyFactoryFactory
in class AbstractInvocationHandler<DataSource,DataSourceDatabase,DataSource,SQLException,DataSourceProxyFactory>
SQLException
Copyright © 2004–2014 Paul Ferraro. All rights reserved.