Allow spring.factory instances to be changed, configured or removed #24947
Labels
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
When
SpringApplication
loads instances viaspring.factories
it's quite hard to change, customize or remove them. Often users need to resort to aBeanFactoryPostProcessor
or the like.For example, the
LoggingApplicationListener
has asetParseArgs
method, but it's very hard to actually call it.Another example is documented in #24878 where specific listeners needed to be removed.
We might be able to offer a
Customizer
interface that would allow instances to be changed to removed. Something like:The text was updated successfully, but these errors were encountered: