|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.osgi.OsgiScanner
public class OsgiScanner
OSGi-specific implementation of the Scanner contract. Scans the persistence unit Bundle for classes and resources. The given 'URL jartoScan' is completely ignored.
| Constructor Summary | |
|---|---|
OsgiScanner(org.osgi.framework.Bundle persistenceBundle)
|
|
| 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)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiScanner(org.osgi.framework.Bundle persistenceBundle)
| Method Detail |
|---|
public Set<Package> getPackagesInJar(URL jartoScan,
Set<Class<? extends Annotation>> annotationsToLookFor)
Scanner
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)
Scanner
getFilesInJar in interface Scannerpublic Set<NamedInputStream> getFilesInClasspath(Set<String> filePatterns)
Scanner
getFilesInClasspath in interface Scannerpublic String getUnqualifiedJarName(URL jarUrl)
Scanner
getUnqualifiedJarName in interface Scanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||