/*
Pro Spring
By Rob Harrop
Jan Machacek
ISBN: 1-59059-461-4
Publisher: Apress
*/
///////////////////////////////////////////////////////////////////////////////////////
//File: depcheck.xml
16
16
///////////////////////////////////////////////////////////////////////////////////////
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
public class SimpleBean {
private int someInt;
private SimpleBean nestedSimpleBean;
public void setSomeInt(int someInt) {
this.someInt = someInt;
}
public void setNestedSimpleBean(SimpleBean nestedSimpleBean) {
this.nestedSimpleBean = nestedSimpleBean;
}
public static void main(String[] args) {
BeanFactory factory = new XmlBeanFactory(new FileSystemResource(
"build/depcheck.xml"));
SimpleBean simpleBean1 = (SimpleBean)factory.getBean("simpleBean1");
SimpleBean simpleBean2 = (SimpleBean)factory.getBean("simpleBean2");
SimpleBean simpleBean3 = (SimpleBean)factory.getBean("simpleBean3");
}
}
DependantCheck.zip( 1,196 k)