Inversion of Control(IoC)는 Dependency Injection(DI)라고도 불리운다.
오브젝트들이 서로 같이 일을 하는 다른 오브젝트들을 다음과 같이 정의한다.
1. 생성자 arguments
2. factory method의 argumnets
3. 프로퍼티
그러면 컨테이너(container)가 bean을 만들 때 injects 한다.
org.springframework.beans 와 org.springframework.context 패키지가 Spring Framework의 IoC Container의 근간을 이룬다.
BeanFactory 인터페이스가 진화된 configuration mechanism을 가능케한다.
ApplicationContext가 BeanFactory 인터페이스의 sub-interface 이다.
AOP 랑도 잘 묶이고, 메시지 리소스, 이벤트 발행랑도 연결된다.
댓글 없음:
댓글 쓰기