1 4 package com.tcspring; 5 6 import org.apache.commons.logging.Log; 7 import org.apache.commons.logging.LogFactory; 8 9 import com.tc.aspectwerkz.joinpoint.StaticJoinPoint; 10 11 16 public class ConversationLockProtocol { 17 private final transient Log logger = LogFactory.getLog(getClass()); 18 19 public Object replaceUtilConversationLock(StaticJoinPoint jp) throws Throwable { 21 Object o = jp.proceed(); 22 if(o.getClass().getName().equals("org.springframework.webflow.conversation.impl.UtilConcurrentConversationLock")) { 23 logger.info("Creating distributed ConversationLock"); 24 return new DSOConversationLock(); 25 } 26 return o; 27 28 } 29 30 } 31 | Popular Tags |