ApplicationContext
		Triangle triangle = (Triangle) context.getBean("triang

		triangle.draw();

ApplicationContext context = new
ClassPathXmlApplicationContext("spring.xml");
Triangle triangle = (Triangle) context.getBean("triangle");