Monday, June 24, 2013

Application Context helper

With Spring taking over the j2ee world, we often end up in situations where we need spring managed beans in static classes or non spring managed beans. Sometimes it could just be decoupling or simplicity, as in u might not want your framework user to take the pain of injecting a utility bean into all beans.
Here is a simple trick I use to solve this