Class QuarkusScanner
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.boot.scan.QuarkusScanner
-
- All Implemented Interfaces:
org.hibernate.boot.archive.scan.spi.Scanner
public class QuarkusScanner extends Object implements org.hibernate.boot.archive.scan.spi.Scanner
A hard coded scanner. This scanner is serialized to bytecode, and used to avoid scanning on Hibernate startup. Technically the scanners are receiving all classes and categorize them as JPA useful or not. In Quarkus's case, we detect the JPA friendly ones and not list the other ones. Emmanuel thinks it's fine as AFAICS, Hibernate ORM filter out the non JPA specific ones.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuarkusScanner.ClassDescriptorImpl
static class
QuarkusScanner.PackageDescriptorImpl
static class
QuarkusScanner.Result
-
Constructor Summary
Constructors Constructor Description QuarkusScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor>
getClassDescriptors()
Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor>
getPackageDescriptors()
org.hibernate.boot.archive.scan.spi.ScanResult
scan(org.hibernate.boot.archive.scan.spi.ScanEnvironment scanEnvironment, org.hibernate.boot.archive.scan.spi.ScanOptions scanOptions, org.hibernate.boot.archive.scan.spi.ScanParameters scanParameters)
void
setClassDescriptors(Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptors)
void
setPackageDescriptors(Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptors)
-
-
-
Method Detail
-
scan
public org.hibernate.boot.archive.scan.spi.ScanResult scan(org.hibernate.boot.archive.scan.spi.ScanEnvironment scanEnvironment, org.hibernate.boot.archive.scan.spi.ScanOptions scanOptions, org.hibernate.boot.archive.scan.spi.ScanParameters scanParameters)
- Specified by:
scan
in interfaceorg.hibernate.boot.archive.scan.spi.Scanner
-
getPackageDescriptors
public Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> getPackageDescriptors()
-
setPackageDescriptors
public void setPackageDescriptors(Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptors)
-
getClassDescriptors
public Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> getClassDescriptors()
-
setClassDescriptors
public void setClassDescriptors(Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptors)
-
-