1 6 7 package org.jfox.ioc.samples; 8 9 import org.jfox.ioc.Component; 10 import org.jfox.ioc.ComponentContext; 11 12 15 16 public class Boy implements Component { 17 18 private Girl girl; 19 20 private String name; 21 22 public Boy(String 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 [] args) { 39 40 } 41 } 42 | Popular Tags |