Inversion of control
http://martinfowler.com/bliki/InversionOfControl.html
Inversion of Control Containers and the Dependency Injection pattern
As a result I think we need a more specific name for this pattern. Inversion of Control is too generic a term, and thus people find it confusing. As a result with a lot of discussion with various IoC advocates we settled on the name Dependency Injection
getter injection
setter injection
interface injection
A beginners guide to Dependency Injection
- IOC : 자신이 만든 프로그램의 컨트롤을 인터페이스 혹은 설정을 통하여 역으로 위임하는 사상으로 Interface의 구현 또는 Operation의 Overriding을 통해서 정의 가능하다.
-
DI : Code의 수행 시점에서 의존성 관계를 정의(Dependency를 Inject)하는 기법. 클래스 사이의 의존관계를 설정된 정보를 바탕으로 컨테이너가 연결시켜줌.
예를 들어, FileLister의 경우, LocalFileFinder, RemoteFileFinder등의 Finder Interface의 구현을 FileLister에 Setter 혹은 Construction를 통하여 건내줌.
DL (Dependency Lookup) : 저장소에 의하여 관리되고 있는 객체를 개발자들이 직접 Lookujp하여 사용하는 것.(=Dependency Pull )
Separating Concerns: Business Logic Implementations round-up
Interface progamming
http://blog.naver.com/scroco/50015115209
History
Last edited on 01/20/2009 10:12 by benelog
Comments (0)