Mark Paluch opened SPR-16010 and commented

Using ClassPathScanningCandidateComponentProvider with an RegexPatternTypeFilter include filter prevents use of the component index.

It might be worth to evaluate regex on the component index so Spring Data's custom repository implementation scan could benefit from component-index-based scanning. RegexPatternTypeFilter is used on every scan to limit component candidates with a simple class name.

It also might be worth introducing a SimpleClassNameTypeFilter dedicated to this style of filtering to eliminate regex pattern compilation and the associated matching cost.


No further details from SPR-16010

Comment From: snicoll

The context indexer has been deprecated and we don't intent to make further changes to it.