org.springframework.data.jdbc.aop
Class ConnectionInterceptor
java.lang.Object
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 ConectionPreparer implementation.
- Since:
- 1.0
|
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 |
ConnectionInterceptor
public ConnectionInterceptor()
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