dev@glassfish.java.net

Re: annotation scanning

From: CasMeiron <casmeiron_at_gmail.com>
Date: Thu, 29 Jul 2010 14:09:11 -0300

Hi,

This is somethin' java should provide natively, we've tons of frameworks
that scan classpath to discover class/annotations. Why CDI can't do that to
us? like:

@Inject @LookingForThisAnnotation
private Collection<Class<?>> classesWithAnnotation;

or even:

@Inject
private Instance<AppScreen> allScreensInClassPath;

THAT should be nice, shouldn't it?

The second approach works on javaEE 6.

Thanks.

-------------------------------
Paulo Reis




On Thu, Jul 29, 2010 at 12:55 PM, <jcfolsom_at_pureperfect.com> wrote:

> Bill Burke's scannotation API