Professional Documents
Culture Documents
C3.2
S1 Dependency Inversion Principle (1)
• Blocks of higher levels should not depend on blocks of lower levels; both should depend on abstractions
• Abstractions should not depend on details, details should depend on abstractions
S2
With dependency injection, dependencies are transferred (injected) from the outside.
The configurator / assembler creates and
The connection "worries":
• Constructor injection
Setter injection
S5 Dependency Look-Up