Tuesday, November 4, 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 class
Step 3 : Finally wire up everything in Spring configuration file

No comments:

Post a Comment