Download presentation
Presentation is loading. Please wait.
1
Titel Dependency Injection
2
What is Dependency Injection?
“… a set of software design principles and patterns that enables us to develop loosely coupled code” - Mark Seeman
3
Dependency Injection with Spring4D
Open Source from Stefan Glinke Porting of Java Library Spring (Also available as Spring.Net) Spring covers several modern program paradigms Aspect oriented programming Class Factory DI And further more
4
Rules for using DI All exportable classes needs their interfaces
Constructors has to follow KISS (Keep it simple and stupid) rule: - Only assignments are allowed - Constructor shall not fail - No conditional execution - Move the initialization of sub classes to a method “Initialization”
5
Demo
6
Christoph Schneider
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.