Code example for XmlBeanFactory

Methods: getBean

0
{ 
	public static void main(String[] args)
		throws Exception	
	{		 
		Resource config=Resource.newResource(args.length==1?args[0]:"etc/jetty-spring.xml");
		XmlBeanFactory bf = new XmlBeanFactory(new UrlResource(config.getURL()));
		Server server = (Server) bf.getBean(args.length==2?args[1]:"Server");
		server.join();
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java