org.alfresco.util
Class AutoCommitInterceptor

java.lang.Object
  extended by org.alfresco.util.AutoCommitInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class AutoCommitInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

Can be used to wrap a datasource to ensure that the connections that it returns have auto-commit switched on.


Constructor Summary
AutoCommitInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoCommitInterceptor

public AutoCommitInterceptor()
Method Detail

invoke

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.