|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.ejb.packaging.NativeScanner
public class NativeScanner
Constructor Summary | |
---|---|
NativeScanner()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeScanner()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |