KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > spring > bean > AppCtxDefBean2


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.spring.bean;
5
6 public class AppCtxDefBean2 implements AppCtxDefBean {
7
8   private AppCtxDefBean bean;
9
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 }
27
Popular Tags