KickJava   Java API By Example, From Geeks To Geeks.

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


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 AppCtxDefBean1 implements AppCtxDefBean {
7
8   private int value;
9   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 }
28
Popular Tags