Tuesday, 20 August 2013

spring autowiring not working from a non-spring managed class

spring autowiring not working from a non-spring managed class

I have a class (Class ABC) that's instantiated by calling the constructor.
Class ABC in turn has a helper class (Class XYZ) injected using
auto-wired.
Ours is a Spring MVC based application and I don't see any exception while
server start-up.
But I still see Class XYZ coming as null. Is it because of the fact that
Class ABC is not instantiated by Spring Container?
In such scenarios, how do i make use of auto-wiring?
Thanks.

No comments:

Post a Comment