Currently BeanDefinitionMethodGeneratorFactory.isImplicitlyExcluded
always filters beans that implement BeanRegistrationAotProcessor
. For Spring Boot, we think we'll need to have bean that implements BeanRegistrationAotProcessor
but isn't filtered.
Comment From: philwebb
I think we can use BeanRegistrationExcludeFilter
as a signal for this. Any AOT processor bean that doesn't implement BeanRegistrationExcludeFilter
can be implicitly filtered. If it does implement BeanRegistrationExcludeFilter
then we consider that a signal that it is handling its own filtering.
Comment From: philwebb
Reopening because it's not particularly obvious that BeanRegistrationExcludeFilter
is being implemented just to exclude the processor. Perhaps a default method on AotProcessor
might be better.
Comment From: snicoll
@philwebb I am assuming this one won't make it the release tomorrow.
Comment From: philwebb
Sorry @snicoll, I didn't get to refine it. The original fix is in M5 so I'll move it back and open a new issue