Since bean registrars are not beans, we should add a validation that users don't add @Component
, @Configuration
or anything like that by accident to bean registrar classes. We can basically check for @Component
if we take the meta annotation hierarchy into account.