public class XAResourceInvocationHandler extends ChildInvocationHandler<XADataSource,XADataSourceDatabase,XAConnection,SQLException,XAResource,XAException,XAResourceProxyFactory>
logger| Constructor and Description |
|---|
XAResourceInvocationHandler(XAResourceProxyFactory proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationStrategy |
getInvocationStrategy(XAResource resource,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected <R> Invoker<XADataSource,XADataSourceDatabase,XAResource,R,XAException> |
getInvoker(XAResource object,
Method method,
Object... parameters)
Return the appropriate invoker for the specified method.
|
protected <R> void |
postInvoke(Invoker<XADataSource,XADataSourceDatabase,XAResource,R,XAException> invoker,
XAResource proxy,
Method method,
Object... parameters) |
invokegetInvoker, getProxyFactory, getProxyFactoryFactorypublic XAResourceInvocationHandler(XAResourceProxyFactory proxyFactory)
protected InvocationStrategy getInvocationStrategy(XAResource resource, Method method, Object... parameters) throws XAException
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<XADataSource,XADataSourceDatabase,XAResource,XAException,XAResourceProxyFactory>resource - the proxied objectmethod - the method to invokeparameters - the method invocation parametersXAExceptionAbstractInvocationHandler.getInvocationStrategy(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected <R> Invoker<XADataSource,XADataSourceDatabase,XAResource,R,XAException> getInvoker(XAResource object, Method method, Object... parameters) throws XAException
getInvoker in class AbstractInvocationHandler<XADataSource,XADataSourceDatabase,XAResource,XAException,XAResourceProxyFactory>XAExceptionAbstractInvocationHandler.getInvoker(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected <R> void postInvoke(Invoker<XADataSource,XADataSourceDatabase,XAResource,R,XAException> invoker, XAResource proxy, Method method, Object... parameters)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.