I have been using spring for a while and am very happy with the result but I have now bumped into a problem that I am struggling to solve.
I would like to be able to get a bean from the bean factory that is not a singleton and is passed in a dynamic constructor argument. I would like to use the factory so that I can swap out different implementations of the bean. Conceptually I would like to produce the same result as the following fictious method.
MyObject = context.getBean("someId", DynamicRuntimeConstructorArgs);
I have had a good look at the docs and the code but I have thus far failed to find any means of doing this. Any help would be most appreciated.