SoftEng-Lab-IoC-DI
SoftEng-Lab-IoC-DI
martinfowler.com/articles/injection.html#ComponentsAndServices
www.baeldung.com/inversion-control-and-dependency-injection-in-spring
crosp.net/blog/software-architecture/clean-architecture-part-2-the-clean-architecture/
1
28/2/2022
What is IoC?
Typically, the part of the framework that does this is called a container.
What is IoC?
Frequent terms that are used for the application objects that are managed by
the framework is beans or components.
Typically, this is useful for important objects that constitute the backbone of
the application e.g.,
controllers that accept web requests,
data mapper objects that interact with the database management system,
other objects that should be easily configured when the application starts
and/or reconfigured while the application is running ….
2
28/2/2022
What is DI?
The basic idea is to have an assembler object that is responsible for setting
the object fields of a composite/aggregate object to refer to other constituent
objects.