For custom needs of EntityScanner it would be nice to let them override the ClassPathScanningCandidateComponentProvider, for instance to provide additional filters compared to what it looks up by default.