public interface Scanner
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getClassesInJar(URL jartoScan,
Set<Class<? extends Annotation>> annotationsToLookFor)
return all classes in the jar matching one of these annotations
if annotationsToLookFor is empty, return all classes
|
Set<NamedInputStream> |
getFilesInClasspath(Set<String> filePatterns)
Return all files in the classpath (ie PU visibility) matching one of these file names
if filePatterns is empty, return all files
the use case is really exact file name.
|
Set<NamedInputStream> |
getFilesInJar(URL jartoScan,
Set<String> filePatterns)
return all files in the jar matching one of these file names
if filePatterns is empty, return all files
eg **\/*.hbm.xml, META-INF/orm.xml
|
Set<Package> |
getPackagesInJar(URL jartoScan,
Set<Class<? extends Annotation>> annotationsToLookFor)
return all packages in the jar matching one of these annotations
if annotationsToLookFor is empty, return all packages
|
String |
getUnqualifiedJarName(URL jarUrl)
return the unqualified JAR name ie customer-model.jar or store.war
|
Set<Package> getPackagesInJar(URL jartoScan, Set<Class<? extends Annotation>> annotationsToLookFor)
Set<Class<?>> getClassesInJar(URL jartoScan, Set<Class<? extends Annotation>> annotationsToLookFor)
Set<NamedInputStream> getFilesInJar(URL jartoScan, Set<String> filePatterns)
Set<NamedInputStream> getFilesInClasspath(Set<String> filePatterns)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.