-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Allow @ConditionalOnClass to apply to spring.factories entries for listeners and initializers etc. #16880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ConditionalOnClass
to apply to spring.factories entries for listeners and initializers etc.
I like the idea of filtering those items out, but I'm not sure reusing |
I like the idea too. Using |
+1 for this issue, that would really be useful on GraalVM native side and I would love that on JVM as well. |
This is quite an old issue and we're not sure if we'll need this approach anymore for native. The |
The
spring.factories
handling inSpringApplication
is encapsulated, so we could support@ConditionalOnClass
on the entries without breaking anything or changing any APIs. That way we could preventLiquibaseServiceLocatorApplicationListener
(for instance) from being needed in every Spring Boot application.Related to (or possibly workaround for): #15704.
The text was updated successfully, but these errors were encountered: