Author: manik.surtani(a)jboss.com
Date: 2008-01-21 09:28:04 -0500 (Mon, 21 Jan 2008)
New Revision: 5167
Modified:
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
Log:
Simplified chain construction logic
Modified: core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2008-01-21
14:26:50 UTC (rev 5166)
+++
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2008-01-21
14:28:04 UTC (rev 5167)
@@ -102,7 +102,7 @@
{
case REPL_SYNC:
case REPL_ASYNC:
- addInterceptor(first, ReplicationInterceptor.class);
+ addInterceptor(first, optimistic ? OptimisticReplicationInterceptor.class :
ReplicationInterceptor.class);
break;
case INVALIDATION_SYNC:
case INVALIDATION_ASYNC:
Show replies by date