Spring Data JDBC Extensions

org.springframework.data.jdbc.aop
Class ConnectionInterceptor

java.lang.Object
  extended by org.springframework.data.jdbc.aop.ConnectionInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class ConnectionInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor

ConnectionInterceptor that delegates to a ConnectionPreparer implementation.

Since:
1.0
Author:
Thomas Risberg

Constructor Summary
ConnectionInterceptor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void setConnectionPreparer(ConnectionPreparer connectionPreparer)
          Setter for the ConnectionPreparer implementation that will handle the preparation of the Connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInterceptor

public ConnectionInterceptor()
Method Detail

setConnectionPreparer

public void setConnectionPreparer(ConnectionPreparer connectionPreparer)
Setter for the ConnectionPreparer implementation that will handle the preparation of the Connection.

Parameters:
connectionPreparer - the ConnectionPreparer implementation

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

Spring Data JDBC Extensions