public interface JPAEnvironment
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getClassesInJar(URL jarToScan,
Class<? extends Annotation>... annotationsToLookFor)
Return all classes in the jar matching one of these annotations
if annotationsToLookFor is empty, return all classes.
|
Set<Resource> |
getFilesInClasspath(URL jarToScan,
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<Resource> |
getFilesInJar(URL jarToScan,
String... filePatterns)
Return all files in the jar matching one of these file names
if filePatterns is empty, return all files
e.g.
|
Set<Package> |
getPackagesInJar(URL jarToScan,
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 url)
Return the unqualified JAR name ie customer-model.jar or store.war.
|
Set<Package> getPackagesInJar(URL jarToScan, Class<? extends Annotation>... annotationsToLookFor)
jarToScan
- jar to scanannotationsToLookFor
- matching annotationsSet<Class<?>> getClassesInJar(URL jarToScan, Class<? extends Annotation>... annotationsToLookFor)
jarToScan
- jar to scanannotationsToLookFor
- matching annotationsSet<Resource> getFilesInJar(URL jarToScan, String... filePatterns)
jarToScan
- jar to scanfilePatterns
- file patternsSet<Resource> getFilesInClasspath(URL jarToScan, String... filePatterns)
jarToScan
- jar to scanfilePatterns
- file patternsCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.