1 4 package com.tc.object.config.spec; 5 6 import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt; 7 8 import com.tc.object.config.ConfigVisitor; 9 import com.tc.object.config.DSOApplicationConfig; 10 import com.tc.object.config.Visitable; 11 12 public class SynchronizedIntSpec implements Visitable { 13 14 public ConfigVisitor visit(ConfigVisitor visitor, DSOApplicationConfig config) { 15 new SynchronizedVariableSpec().visit(visitor, config); 16 String classname = SynchronizedInt.class.getName(); 17 config.addIncludePattern(classname); 18 config.addWriteAutolock("* " + classname + ".*(..)"); 19 return visitor; 20 } 21 22 } 23 | Popular Tags |