users@hk2.java.net

ServiceLocator.getService(Class<T>, Annotation...)

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Fri, 29 Nov 2013 16:01:04 -0500

Hi,

https://hk2.java.net/2.2.0-b24/api-overview.html explains that we must
instantiate an annotation in order to use ServiceLocator.getService() by
annotation. Instead of "ServiceLocator.getService(Class<T>,
Annotation...)" why couldn't you do "ServiceLocator.getService(Class<T>,
Class<? extends Annotation>...)"?

Thanks,
Gili