org.springframework.jca.cci.connection
Class TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler

java.lang.Object
  extended by org.springframework.jca.cci.connection.TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
TransactionAwareConnectionFactoryProxy

private static class TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Invocation handler that delegates close calls on CCI Connections to ConnectionFactoryUtils for being aware of thread-bound transactions.


Field Summary
private  ConnectionFactory connectionFactory
           
private  Connection target
           
 
Constructor Summary
TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler(Connection target, ConnectionFactory cf)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final Connection target

connectionFactory

private final ConnectionFactory connectionFactory
Constructor Detail

TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler

public TransactionAwareConnectionFactoryProxy.TransactionAwareInvocationHandler(Connection target,
                                                                                ConnectionFactory cf)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable