Skip to content

Make it easier to add new configuration options to ApplicationContextRunners #27690

@wilkinsona

Description

@wilkinsona

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions