Open
Description
See spring-projects/spring-boot#32262 for background.
Currently we have a number of areas where we want to exclude beans from being used in AOT processed applications. There are a number of ways we currently do this.
- If a bean implements
BeanRegistrationAotProcessor
then theisBeanExcludedFromAotProcessing
result is considered. - If we want to filter a bean, we can use
BeanRegistrationExcludeFilter
inMETA-INF/spring/aot.factories
. - For most other situations we use an
if
withAotDetector.useGeneratedArtifacts()
in the actual code.
It would be nice if we could review these existing usages and see if we can find a common way to perform exclusions.