In a project that uses a DI framework, should you NEVER use the 'new' operator?
- by Chuck
I'm trying to wrap my head around Dependency Injection.
One of the things I'm confused about is whether all of your object instantiation needs to be controlled by the DI framework (Spring, Guice, etc).
Or, if not, how do you determine which objects are instantiated by the framework and which objects are instantiated with the new operator?