We should stress that the class not only has the annotation somewhere (e.g. on a method) but declares it. E.g. "Only classes that declared a bean defining..."