public class ConnectionPoolDataSourceInvocationHandler extends CommonDataSourceInvocationHandler<ConnectionPoolDataSource,ConnectionPoolDataSourceDatabase,ConnectionPoolDataSourceProxyFactory>
logger
Constructor and Description |
---|
ConnectionPoolDataSourceInvocationHandler(ConnectionPoolDataSourceProxyFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy |
getInvocationStrategy(ConnectionPoolDataSource dataSource,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected ProxyFactoryFactory<ConnectionPoolDataSource,ConnectionPoolDataSourceDatabase,ConnectionPoolDataSource,SQLException,?,? extends Exception> |
getProxyFactoryFactory(ConnectionPoolDataSource object,
Method method,
Object... parameters) |
postInvoke
getInvoker, getInvoker, getProxyFactory, invoke
public ConnectionPoolDataSourceInvocationHandler(ConnectionPoolDataSourceProxyFactory factory)
protected InvocationStrategy getInvocationStrategy(ConnectionPoolDataSource 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<ConnectionPoolDataSource,ConnectionPoolDataSourceDatabase,ConnectionPoolDataSourceProxyFactory>
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<ConnectionPoolDataSource,ConnectionPoolDataSourceDatabase,ConnectionPoolDataSource,SQLException,?,? extends Exception> getProxyFactoryFactory(ConnectionPoolDataSource object, Method method, Object... parameters) throws SQLException
Copyright © 2004–2014 Paul Ferraro. All rights reserved.