[jboss-dev] Way to scan for classes that extend or implement

Rémy Maucherat remy.maucherat at gmail.com
Fri Jun 11 16:46:28 EDT 2010


On Fri, Jun 11, 2010 at 5:35 PM, Bill Burke <bburke at redhat.com> wrote:
> Hmmm, where you get the classpathItem from then?  AnnotationIndex
> doesn't require for you to provide this info.

It's just a regular VirtualFile to the JAR or exploded folder. For the
classpath you could do:
List<VirtualFile> classpath = (VFSDeploymentUnit) unit.getClassPath();

Rémy



More information about the jboss-development mailing list