I know there are many articles and threads on Dependency Injection, but not as much on Dependency Injection Containers. I found this one by Fabien Potencier quite helpful, although it targets PHP. However the more I read about those containers I come to the conclusion that such is none more then a simple collection of factory-methods, is this true?
A deeper and more concrete view:
When injecting a dependency to an object
foo.Bar = new Dependency(); I could also write
foo.Bar = new myFactory.CreateDependency(); or with a container
foo.Bar = myContainer.CreateDependency(); Here the container within the last approach does not have only one but many other methods to create other types also, so it is just a container for factory-methods, right?