Spring container
Inversion of control 페이지 참조할 것
ApplicationContext가 BeanFactory보다 좋은점
MessageSource지원 (MessageSourceAware)
Listener지원 (ApplicationEventPublisherAware)
ResourceLoader지원 (ResourceLoaderAware)
Spring Framework 2장 BeanFactory 와 Bean 정의
Spring Framework 3장 다양한 프로퍼티 값과 Bean의 라이프사이클(실행주기)
빈정보 접근
BeaNameAware
BeanFactoryAware
ApplicatoinContextAware
생명주기
InitializingBean , init-method, @PostConstruct
DiposableBean ,destroy-method, @PreDestroy
설정
Spring XML설정파일을 위한 12가지 가장 좋은 선택
Spring XML 설정 파일에서 import 동작 원리
Dependency Injection for Loose Coupling - Spring .net
InsideSpring (3) 스프링 밖에서 WebApplicationContext에 접근하기
Annotation 기반
@Resource : JSR-250 / EJB3 model
@PostConstruct : InitializingBean#afterPropertiesSet()과 비슷
@PreDestroy : DisposableBean#destroy()와 비슷
@Component
컴포넌트 자동감지 기능을 사용해보니..
스프링의 Common Annotations 1.0 지원
https://jira.springsource.org/browse/SPR-3845
DI관련 JSR
Dependency Indejection 표준 정하기 논쟁
[스프링 3.0] JSR-330 Provider 인터페이스 이용해서 싱글톤이 아닌 빈을 싱글톤 빈에 주입하기
http://www.adam-bien.com/roller/abien/entry/what_is_the_relation_between
http://blogs.sun.com/enterprisetechtips/entry/using_cdi_and_dependency_injection
JSR-330 Compliance with Spring
http://matthiaswessendorf.wordpress.com/2010/01/19/dependency-injection-the-jsr-330-way/
Scope
Spring 컨트롤러와 request scope bean
singleton, prototype, request, session, global-session
FactoryBean
'만들 수 없는 것'을 FactoryBean으로 만들기
설정 샘플
springonline_final_050108[1].pdf
퀴즈풀기
http://forum.ksug.org/viewtopic.php?f=5&t=118
<bean id="info" class="a.b.c.Info" p:dao-ref="mydao" scope="prototype" />
<bean id="mydao" class="a.b.c.MyDao" />
ApplicationContext aware
<aop:scoped-proxy/>
Method Injection
@Configuable
Arbitrary method replacement
History
Last edited on 08/02/2010 10:28 by benelog
Comments (0)