-
1. scannotation fails on JBoss AS 6: VFS
nickarls Feb 11, 2011 1:58 AM (in response to fcorneli)Not sure if this applies but have you read http://bill.burkecentral.com/2008/01/14/scanning-java-annotations-at-runtime/ ?
There is also http://code.google.com/p/reflections/
-
2. scannotation fails on JBoss AS 6: VFS
fcorneli Feb 11, 2011 2:36 AM (in response to nickarls)What is suggested on that blog is exactly what I've tried. Unfortunately this no longer works because of JBoss VFS's custom vfs URL prefix. Seems like the reflections project has a solution for this:
http://code.google.com/p/reflections/issues/detail?id=63
But this requires you to build reflections from the source as this patch is not yet part of a release.
Weird that EJB 3.1 does not include anything for annotation based scanning (this would allow for interesting custom annotation based extensions). Something like:
@Resource
Scanner scanner;
Set<String> myClassNames = scanner.getTypeAnnotatedClassNames(MyAnnotation.class, ScannerScope.EJB_JAR);
-
3. scannotation fails on JBoss AS 6: VFS
nickarls Feb 11, 2011 2:43 AM (in response to fcorneli)What is the status of JBoss Papaki (previous JBoss Annotations)?. Is it used anywhere?