I was going through the Spring 3.0 reference documentation and i found the following line:
You use getBean to retrieve instances of your beans. The ApplicationContext interface has a few other methods for retrieving beans, but ideally your application code should never use them. Indeed, your application code should have no calls to the getBean method at all, and thus no dependency on Spring APIs at all.
It is mentioned in the section
3.2.3 Using the container
So, If we dont use getBean() method at all,how can we get the beans into our code?
Thanks
Sudhakar