In dependency injection, is there a simple name for the counterpart of the injected object? [closed]
Closed 10 years ago.
DI and hypothetical readonly setters in C#
Sometimes I would like to declare a property like this:
Is functional intellisense and code browsing more beneficial than the use of dependency injection containers
This question is really based on PHP, but could be valid for other dynamically typed, interpreted languages and specifically the methods of generating code insight and object browsing in development environments.
Can higher-order functions in FP be interpreted as some kind of dependency injection?
According to this article, in object-oriented programming / design dependency injection involves
Are injectable classes allowed to have constructor parameters in DI?
Given the following code:
How to TDD test that objects are being added to a collection if the collection is private?
Assume that I planned to write a class that worked something like this:
How to do dependency Injection and conditional object creation based on type?
I have a service endpoint initialized using DI. It is of the following style. This end point is used across the app.
Representing complex object dependencies
I have several classes with a reasonably complex (but acyclic) dependency graph. All the dependencies are of the form: class X
instance contains an attribute of class Y
. All such attributes are set during initialization and never changed again.
What is constructor injection?
I have been looking at the terms constructor injection and dependency injection while going through articles on (Service locator) design patterns.
Desktop application, dependency injection
I am thinking of applying a real dependency injection library to my toy C#/GTK# desktop application. I chose NInject, but I think this is irrelevant to my question.