-
Jul 3rd, 2012, 12:02 PM
#1
Updating autowired bean after context refresh
Hi,
Ive got the following issue.
Ive got a bean "a" which has a hashmap property, hashmap property is configured in xml config.
public class a {
protected java.util.HashMap<String,String> recommendations = null;
... setter, getter...
}
class b autowires class a
and class c autowires class b
If I refresh my application context, because my hashmap has changed in my configuration.xml, I can debug that setter is called for my hashmap property.
However, if I try to access that property in class c through b, I still receive the "old" hashmap.
My suspicion is that autowired properties in class c and b are still referencing the "old" class a object.
Does anybody know how I may get an access to the updated hashmap??
Thanks a lot in advance..
Volker
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules