Bill Gorder wrote:You don't do this and why would you want to? Can you give me a use case where you would need to do this?
No special reason, just see all example about DI is for member variable, maybe I do not understand why need to use DI and so ask this question. At first, I think in spring application, there should be no any NEW Class statement. this is wrong concept?