KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > samples > Boy


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.samples;
8
9 import org.jfox.ioc.Component;
10 import org.jfox.ioc.ComponentContext;
11
12 /**
13  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
14  */

15
16 public class Boy implements Component {
17
18     private Girl girl;
19
20     private String JavaDoc name;
21
22     public Boy(String JavaDoc name) {
23         this.name = name;
24     }
25
26     public void setComponentContext(ComponentContext ctx) {
27
28     }
29
30     public Girl getGirl() {
31         return girl;
32     }
33
34     public void setGirl(Girl girl) {
35         this.girl = girl;
36     }
37
38     public static void main(String JavaDoc[] args) {
39
40     }
41 }
42
Popular Tags