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.aj;
05:
06: import org.springframework.beans.factory.InitializingBean;
07:
08: public class InstrumentedBean implements InitializingBean,
09: IInstrumentedBean {
10:
11: private ConfigurableBean configurableBean;
12:
13: private String value;
14:
15: private transient String transientValue = "aaa";
16:
17: public void afterPropertiesSet() throws Exception {
18: this .configurableBean = new ConfigurableBean();
19: }
20:
21: public String getProperty1() {
22: synchronized (this ) {
23: return this .configurableBean.getProperty1();
24: }
25: }
26:
27: public String getProperty2() {
28: synchronized (this ) {
29: return this .configurableBean.getProperty2();
30: }
31: }
32:
33: public void setValue(String value) {
34: synchronized (this ) {
35: this .value = value;
36: }
37: }
38:
39: public Object getValue() {
40: synchronized (this ) {
41: return value;
42: }
43: }
44:
45: public Object getTransientValue() {
46: return transientValue;
47: }
48:
49: public void setTransientValue(String transientValue) {
50: this.transientValue = transientValue;
51: }
52:
53: }
|