To access the Beans from the XML file we can use BeanFactory.(see the example)
BeanFactory fact=new XMLBeanFactorynew (new FileSystemResources("XMLfilename.xml"));
To access the Beans from the XML file we can also use ApplicationContext.
ApplicationContext context=new ClassPathXmlApplicationContext("XMLfilename.xml");
For Further Reading,
0 comments:
Post a Comment