implementation flavors - Solar-AS/DI-IoC GitHub Wiki
Implementation Flavors
A class exposes its collaborators
Dependencies can be pushed into the class:
- By itself
- By third parties:
- Unit test
- Factory
- Service Locator (w./wo. context)
- Container
In:
- constructor
- setter
- interface
It is usually a matter of Service Location vs. Dependency Injection