Skip to main content


Showing posts from November, 2008

Initializing static fields of Spring beans

New Solution - Updated 4/16/2017

The old solution shown below is very cumbersome. So here is the new solution which is much easier.

Old solution

This solution is courtesy Chris Harris UK.
Step 1: Create a bean factory post processor. Step 2 : Create the simple test classStep 3 : Finally wire up everything in Spring configuration file