본문 바로가기

콩's EDUCATION/콩's SPRING

BeanFactory, ApplicationContext차이

반응형
BeanFactory factory = new XmlBeanFactory
(new ClassPathResource("coupling/applicationContext.xml"));

1. xml 파일 입력
2014. 7. 25 오전 10:22:06 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
정보: Loading XML bean definitions from class path resource [coupling/applicationContext.xml]
2. xml 파일 입력
3. LGTV 생성자
LG TV 끄기
LG TV 켜기
Volume 내리기
Volume 올리기


ApplicationContext factory2 = 
new ClassPathXmlApplicationContext("coupling/applicationContext.xml");

1. xml 파일 입력
2014. 7. 25 오전 10:16:48 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
정보: Loading XML bean definitions from class path resource [coupling/applicationContext.xml]
2. xml 파일 입력
2014. 7. 25 오전 10:16:48 org.springframework.context.support.AbstractApplicationContext prepareRefresh
정보: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@341960: startup date [Fri Jul 25 10:16:48 KST 2014]; root of context hierarchy
2014. 7. 25 오전 10:16:48 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
정보: Loading XML bean definitions from class path resource [coupling/applicationContext.xml]
2014. 7. 25 오전 10:16:48 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
정보: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@641e9a: defining beans [tv]; root of factory hierarchy
3. LGTV 생성자
LG TV 끄기
LG TV 켜기
Volume 내리기
Volume 올리기


반응형

'콩's EDUCATION > 콩's SPRING' 카테고리의 다른 글

디자인 패턴  (0) 2014.07.25
ApplicationContext 객체 xml 활용  (0) 2014.07.25
Spring Library 추가 하는 법  (0) 2014.07.24
[KITRI] Spring 2장  (0) 2014.07.24
[KITRI] Spring 1장  (0) 2014.07.24

⚠️ 광고 차단 프로그램 감지

애드블록, 유니콘 등 광고 차단 확장 프로그램을 해제하거나
화이트리스트에 추가해주세요.