Hi,

Wouldn't it be convenient as the CDI API that now requires an Annotation instance in various APIs, would also accept the class type of that Annotation?

E.g. in BeanManager there's this method:

Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)

This not rarely requires one to create an AnnotationLiteral, which is not specifically difficult but a tad verbose. For qualifiers that have no (binding) attributes, a simple Class would be much easier to use.

Thoughts?

Kind regards,
Arjan Tijms