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