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.tctest.spring.bean;
05:
06: import java.util.ArrayList;
07: import java.util.List;
08:
09: public class Recorder {
10:
11: private List values = new ArrayList();
12:
13: public void addValue(String value) {
14: synchronized (this ) {
15: this .values.add(value);
16: }
17: }
18:
19: public List getValues() {
20: return values;
21: }
22:
23: public String toString() {
24: return System.identityHashCode(this ) + " Recorder: " + values;
25: }
26: }
|