From: Ben W. <bw...@jb...> - 2006-07-07 09:33:57
|
User: bwang Date: 06/07/07 05:33:55 Modified: src/resources jboss-aop.xml Log: Added undo interceptor stack. Revision Changes Path 1.8 +12 -6 JBossCache/src/resources/jboss-aop.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: jboss-aop.xml =================================================================== RCS file: /cvsroot/jboss/JBossCache/src/resources/jboss-aop.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- jboss-aop.xml 6 Jul 2006 02:42:48 -0000 1.7 +++ jboss-aop.xml 7 Jul 2006 09:33:55 -0000 1.8 @@ -63,16 +63,20 @@ <!-- This defines the PojoCache 2.0 interceptor stack. --> + <!-- Check id range validity --> <interceptor name="CheckId" class="org.jboss.cache.pojo.interceptors.CheckIdInterceptor" scope="PER_INSTANCE"/> + <!-- Track Tx undo operation --> + <interceptor name="Undo" class="org.jboss.cache.pojo.interceptors.PojoTxUndoInterceptor" scope="PER_INSTANCE"/> <stack name="Tx"> + <!-- Starting interceptor --> <interceptor name="Start" class="org.jboss.cache.pojo.interceptors.PojoBeginInterceptor" scope="PER_INSTANCE"/> <!-- Check if we need a local tx for batch processing --> <interceptor name="Tx" class="org.jboss.cache.pojo.interceptors.PojoTxInterceptor" scope="PER_INSTANCE"/> <!-- Perform parent level node locking --> <interceptor name="TxLock" class="org.jboss.cache.pojo.interceptors.PojoTxLockInterceptor" scope="PER_INSTANCE"/> <!-- Interceptor to perform Pojo level rollback --> - <interceptor name="TxUndo" class="org.jboss.cache.pojo.interceptors.PojoTxUndoInterceptor" scope="PER_INSTANCE"/> + <interceptor name="TxUndo" class="org.jboss.cache.pojo.interceptors.PojoTxUndoSynchronizationInterceptor" scope="PER_INSTANCE"/> </stack> <!--bind pointcut="execution(public Object org.jboss.cache.pojo.impl.PojoCacheImpl->attach(String, Object) @@ -83,13 +87,15 @@ </bind> <bind pointcut="execution(* - org.jboss.cache.pojo.impl.PojoCacheImpl->attach(..))"> - <stack-ref name="Tx"/> + org.jboss.cache.pojo.PojoUtil->@org.jboss.cache.pojo.annotation.TxUndo(..))"> + <interceptor-ref name="Undo"/> </bind> - <bind pointcut="execution(* - org.jboss.cache.pojo.impl.PojoCacheImpl->detach(..))"> + <bind pointcut=" + execution(* org.jboss.cache.pojo.impl.PojoCacheImpl->attach(..)) OR + execution(* org.jboss.cache.pojo.impl.PojoCacheImpl->detach(..)) OR + execution(* org.jboss.cache.pojo.impl.PojoCacheImpl->find(..)) + "> <stack-ref name="Tx"/> </bind> - </aop> |