01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.config.spec;
05:
06: import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt;
07:
08: import com.tc.object.config.ConfigVisitor;
09: 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,
15: DSOApplicationConfig config) {
16: new SynchronizedVariableSpec().visit(visitor, config);
17: String classname = SynchronizedInt.class.getName();
18: config.addIncludePattern(classname);
19: config.addWriteAutolock("* " + classname + ".*(..)");
20: return visitor;
21: }
22:
23: }
|