I have an abstract class with a static method that returns either one concrete subclass
or another, depending on this static method’s arguments.
How do I define a bean in spring configuration file that will invoke this static method with the arguments?
From the Spring documentation, you just treat the parameters as constructor arguments: