org.springframework.jdbc.datasource
Class TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler

java.lang.Object
  extended by org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
TransactionAwareDataSourceProxy

private class TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

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


Field Summary
private  boolean closed
           
private  java.sql.Connection target
           
private  javax.sql.DataSource targetDataSource
           
 
Constructor Summary
TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler(javax.sql.DataSource targetDataSource)
           
 
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

targetDataSource

private final javax.sql.DataSource targetDataSource

target

private java.sql.Connection target

closed

private boolean closed
Constructor Detail

TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler

public TransactionAwareDataSourceProxy.TransactionAwareInvocationHandler(javax.sql.DataSource targetDataSource)
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