Rejo Varghese wrote:Hi,
I want to know about dependency injection. I know that it is a part of Spring framework. but i wanna know if it can be used only in a MVC framework or can it be used for java applicaitons.
Thanks for any suggestion.
Actually, my first exposure to dependency injection as a general design strategy wasn't in a GUI app at all. It was in the Apache Avalon Phoenix project, which we used to run batch processes. Avalon is long-gone now, but some of its components are still found in various other systems.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.