I need to add a hash map object programatically to spring application context object.I am a newbie to Spring frame work. For every request I need to compare the key-value pair.if the key is not found i need to update the hashmap with new key-value and then again store it back to applicationContext .Can anyone please help me to solve this.
Sorry for the confusion.But I want to add an hashmap object to the applicationContext at runtime.Also if we update the the hashmap.It has to be reflected in the appicationContext as well...
Any updates made to a hashmap in the application context are reflected in the hashmap in the application context--because it's the hashmap in the application context.
If I google for "spring +add beans programmatically" I get a lot of hits--the two most useful on the first page (for me) were: