I'm trying to do something similar (external, on-demand bean construction, based on type for autowiring).
The closest I've come is InstantiationStrategy, which I've implemented but I haven't...
Type: Posts; User: philion; Keyword(s):
I'm trying to do something similar (external, on-demand bean construction, based on type for autowiring).
The closest I've come is InstantiationStrategy, which I've implemented but I haven't...
This turns out to be a classpath problem: There was an old version of Spring that was being picked up, which ignored the scope attribute (I assume).
I am trying to use the prototype scope in Spring 2.0.5 to create unique beans, but I keep getting the same bean.
I have reduced it to the simplest code I can to repro the problem:
...
I have a legacy class that has a method like:
public void loadConfig(File config)
I would like to use a classpath resource to provide the config: However, I've got mutiple files that need...