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