Package com.axelor.db
Class JpaScanner
- java.lang.Object
-
- org.hibernate.boot.archive.scan.spi.AbstractScannerImpl
-
- com.axelor.db.JpaScanner
-
- All Implemented Interfaces:
Scanner
public class JpaScanner extends AbstractScannerImpl
A custom Hibernate scanner that scans all the classpath entries for all theModel
classes annotated withEntity
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.boot.archive.scan.spi.AbstractScannerImpl
AbstractScannerImpl.ArchiveContextImpl, AbstractScannerImpl.ArchiveDescriptorInfo
-
-
Field Summary
Fields Modifier and Type Field Description static ClassLoader
loader
-
Constructor Summary
Constructors Constructor Description JpaScanner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
exclude(String pkg)
Exclude classes from the given package.static Class<?>
findEnum(String name)
static Class<?>
findModel(String name)
static Set<Class<?>>
findModels()
static Class<?>
findRepository(String name)
static ClassLoader
getClassLoader()
static void
include(String pkg)
Include classes from the given package.ScanResult
scan(ScanEnvironment environment, ScanOptions options, ScanParameters params)
-
Methods inherited from class org.hibernate.boot.archive.scan.spi.AbstractScannerImpl
resolveNonRootUrl, validateReuse
-
-
-
-
Field Detail
-
loader
public static ClassLoader loader
-
-
Method Detail
-
exclude
public static void exclude(String pkg)
Exclude classes from the given package.- Parameters:
pkg
- the package name
-
include
public static void include(String pkg)
Include classes from the given package.- Parameters:
pkg
- the package name
-
scan
public ScanResult scan(ScanEnvironment environment, ScanOptions options, ScanParameters params)
- Specified by:
scan
in interfaceScanner
- Overrides:
scan
in classAbstractScannerImpl
-
getClassLoader
public static ClassLoader getClassLoader()
-
-