I need to share static hashmaps which will be init on run-time using Spring 3.1.
I need to create a real singleton bean (not necessarily singleton scope) which will hold all my static hashmaps.
The hashmap will be modifiable also in run-time and it has to be available for all my spring beans.
- the bean that hold the static map has to be alive as long as the application is running
- the bean need to be accessed by all spring beans.
- the hashmaps need to be concurrent and thread safe. The hashmap might have like 100 entries and will be accessed in a very high rate.
How could I achive this? Thanks in advance,