Our application includes a factory that returns an instance based on a parameter passed to the factory method. Something like this:
How would this factory be implemented in spring? In my limited experience w/Spring I always get an object from the BeanFactory simply by name... Hoping the solution isn't a unqiue named <bean> entry for every possible "thing" implementation; there are 250+ and counting.
InterestingThing thing = ThingFactory.getThing(23); InterestingThing other = ThingFactory.getThing(99);