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: public class AppCtxDefBean1 implements AppCtxDefBean {
07:
08: private int value;
09: private AppCtxDefBean bean;
10:
11: public int getValue() {
12: synchronized (this ) {
13: return value;
14: }
15: }
16:
17: public void setValue(int value) {
18: synchronized (this ) {
19: this .value = value;
20: }
21: }
22:
23: public void setBean(AppCtxDefBean bean) {
24: this.bean = bean;
25: }
26:
27: }
|