Constructor and Description |
---|
NativeScanner() |
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)
support for patterns is primitive:
- **\/*.hbm.xml
Other patterns will not be found
|
Set<Package> |
getPackagesInJar(URL jarToScan,
Set<Class<? extends Annotation>> annotationsToLookFor)
This implementation does not honor the list of annotations and return everything.
|
String |
getUnqualifiedJarName(URL jarToScan)
return the unqualified JAR name ie customer-model.jar or store.war
|
public Set<Package> getPackagesInJar(URL jarToScan, Set<Class<? extends Annotation>> annotationsToLookFor)
getPackagesInJar
in interface Scanner
public Set<Class<?>> getClassesInJar(URL jarToScan, Set<Class<? extends Annotation>> annotationsToLookFor)
Scanner
getClassesInJar
in interface Scanner
public Set<NamedInputStream> getFilesInJar(URL jarToScan, Set<String> filePatterns)
getFilesInJar
in interface Scanner
public Set<NamedInputStream> getFilesInClasspath(Set<String> filePatterns)
Scanner
getFilesInClasspath
in interface Scanner
public String getUnqualifiedJarName(URL jarToScan)
Scanner
getUnqualifiedJarName
in interface Scanner
Copyright © 2018 JBoss by Red Hat. All rights reserved.