org.hibernate.ejb.packaging
Interface Scanner

All Known Implementing Classes:
NativeScanner

public interface Scanner

Author:
Emmanuel Bernard

Method Summary
 java.util.Set<java.lang.Class<?>> getClassesInJar(java.net.URL jartoScan, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsToLookFor)
          return all classes in the jar matching one of these annotations if annotationsToLookFor is empty, return all classes
 java.util.Set<NamedInputStream> getFilesInClasspath(java.util.Set<java.lang.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.
 java.util.Set<NamedInputStream> getFilesInJar(java.net.URL jartoScan, java.util.Set<java.lang.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
 java.util.Set<java.lang.Package> getPackagesInJar(java.net.URL jartoScan, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsToLookFor)
          return all packages in the jar matching one of these annotations if annotationsToLookFor is empty, return all packages
 java.lang.String getUnqualifiedJarName(java.net.URL jarUrl)
          return the unqualified JAR name ie customer-model.jar or store.war
 

Method Detail

getPackagesInJar

java.util.Set<java.lang.Package> getPackagesInJar(java.net.URL jartoScan,
                                                  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsToLookFor)
return all packages in the jar matching one of these annotations if annotationsToLookFor is empty, return all packages


getClassesInJar

java.util.Set<java.lang.Class<?>> getClassesInJar(java.net.URL jartoScan,
                                                  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsToLookFor)
return all classes in the jar matching one of these annotations if annotationsToLookFor is empty, return all classes


getFilesInJar

java.util.Set<NamedInputStream> getFilesInJar(java.net.URL jartoScan,
                                              java.util.Set<java.lang.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


getFilesInClasspath

java.util.Set<NamedInputStream> getFilesInClasspath(java.util.Set<java.lang.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. NOT USED by HEM at the moment. We use exact file search via getResourceAsStream for now.


getUnqualifiedJarName

java.lang.String getUnqualifiedJarName(java.net.URL jarUrl)
return the unqualified JAR name ie customer-model.jar or store.war



Copyright © 2010. All Rights Reserved.