1 16 17 package org.springframework.beans.factory.xml; 18 19 import org.springframework.beans.TestBean; 20 import org.springframework.beans.factory.BeanFactory; 21 import org.springframework.beans.factory.BeanFactoryAware; 22 23 29 public class DependenciesBean implements BeanFactoryAware { 30 31 private int age; 32 33 private String name; 34 35 private TestBean spouse; 36 37 private BeanFactory beanFactory; 38 39 40 public void setAge(int age) { 41 this.age = age; 42 } 43 44 public int getAge() { 45 return age; 46 } 47 48 public void setName(String name) { 49 this.name = name; 50 } 51 52 public String getName() { 53 return name; 54 } 55 56 public void setSpouse(TestBean spouse) { 57 this.spouse = spouse; 58 } 59 60 public TestBean getSpouse() { 61 return spouse; 62 } 63 64 public void setBeanFactory(BeanFactory beanFactory) { 65 this.beanFactory = beanFactory; 66 } 67 68 public BeanFactory getBeanFactory() { 69 return beanFactory; 70 } 71 72 } 73 | Popular Tags |