public class JpaScanner
extends org.hibernate.ejb.packaging.NativeScanner
| Modifier and Type | Field and Description |
|---|---|
static ClassLoader |
loader |
| Constructor and Description |
|---|
JpaScanner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exclude(String pkg)
Exclude classes from the given package.
|
static Class<?> |
findModel(String name) |
static Set<Class<?>> |
findModels() |
static Class<?> |
findRepository(String name) |
Set<Class<?>> |
getClassesInJar(URL jarToScan,
Set<Class<? extends Annotation>> annotationsToLookFor) |
static ClassLoader |
getClassLoader() |
static void |
include(String pkg)
Include classes from the given package.
|
public static ClassLoader loader
public static void exclude(String pkg)
pkg - the package namepublic static void include(String pkg)
pkg - the package namepublic Set<Class<?>> getClassesInJar(URL jarToScan, Set<Class<? extends Annotation>> annotationsToLookFor)
getClassesInJar in interface org.hibernate.ejb.packaging.ScannergetClassesInJar in class org.hibernate.ejb.packaging.NativeScannerpublic static ClassLoader getClassLoader()