Provide a pluggable abstraction for resolving SpringApplicationRunListeners #15956
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Similar to #15955, it would be useful in the context of #15704 for a
SpringApplicationRunListener
not to have to have a particular constructor.Rather than passing
SpringApplication
and theString[]
of arguments into the constructor, they should be made available via a method or methods on an interface. This will allow run listeners to be plugged in and configured using a general purpose extension mechanism without the use of reflection. Rather than passing in theString[]
, we could also consider passing inApplicationArguments
instead.If we do this, we'll need to try and do it in a way that's backwards compatible.
The text was updated successfully, but these errors were encountered: