AbstractApplicationContextRunner
currently has a nine-parameter constructor and a nine-parameter newInstance
method, both of which are public API. This makes adding new configuration options quite cumbersome. The constructor needs to be deprecated and a new ten-parameter constructor added along side it. Similar changes are needed for the newInstance
method with additional matching changes to each of the three sub-classes. I think it'd be good to encapsulate all of the configuration in a single class that retains the same sensible defaults. This should reduce the surface area of any changes that introduce a new configuration option.