package com.di.ex03;

import org.springframework.context.support.GenericXmlApplicationContext;

public class TestMain3 {

	public static void main(String[] args) {
		
		GenericXmlApplicationContext gxac = new GenericXmlApplicationContext("com/di/ex03/applicationContext.xml");
		
		UserVO manA = new UserVO("manA"); 
		
		UserService userA = (UserService) gxac.getBean("userService");
		userA.add(manA);
		
		System.out.println();
		
		UserService userB = gxac.getBean("userService", UserService.class);
		System.out.println("userB : " + userB);
		
		gxac.close();
	}

}