Closed
Description
Proposal:
For known Condition
implementations, we "know" that they technically contain a "virtual" @ConditionalOnClass
condition.
Sample:
org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition#isServletWebApplication
effectively equals @ConditionalOnClass("org.springframework.web.context.support.GenericWebApplicationContext")
performed by corresponding ClassUtils.isPresent()
call.
Benefits:
- Improved startup time for application
- Improved performance in IDEs using such metadata (as IntelliJ IDEA already does)
TBD: How can such knowledge be provided/maintained for any custom Condition
implementation wishing to participate in this metadata generation.