I am converting a singleton to a Spring bean, so that if the singleton fails to initialize, then entire web application\'s spring context doesn\'t load properly.
Th
You must declare the INSTANCE field as volatile for double-checked locking to work correctly.
INSTANCE
volatile
See Effective Java, Item 71.