Skip to content

Allow @ConditionalOnClass to apply to spring.factories entries for listeners and initializers etc. #16880

@dsyer

Description

@dsyer

The spring.factories handling in SpringApplication is encapsulated, so we could support @ConditionalOnClass on the entries without breaking anything or changing any APIs. That way we could prevent LiquibaseServiceLocatorApplicationListener (for instance) from being needed in every Spring Boot application.

Related to (or possibly workaround for): #15704.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions