Phil Webb opened SPR-14009 and commented
@ComponentScan allows custom TypeFilters to be created and used for scanning. Spring Boot would like to have access to the BeanFactory from within the filter, however, this isn't currently possible. It would be helpful if a subset of *Aware interfaces could be implemented on the filter (much like they can be on ImportBeanDefinitionRegistrar & ImportSelector.
Affects: 4.2.5
Issue Links:
Referenced from: pull request #984, and commits 094cf6c