Skip to content

Commit 8e56f2a

Browse files
committed
HHH-18987 - Support discovery of META-INF/orm.xml while bootstrapping
1 parent 1158838 commit 8e56f2a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

hibernate-core/src/main/java/org/hibernate/boot/archive/scan/internal/DisabledScanner.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
import org.hibernate.boot.archive.spi.InputStreamAccess;
2525

2626
/**
27-
* Implementation of Scanner that does nothing. Used for optimizing startup
28-
* time when metadata scanning is not needed.
27+
* Implementation of Scanner that does no scanning.
28+
* It simply searches for {@code META-INF/orm.xml} path(s) relative
29+
* to the {@linkplain ScanEnvironment#getRootUrl() root} and
30+
* {@linkplain ScanEnvironment#getNonRootUrls() non-root} URLs.
31+
* Used for optimizing startup time when full scanning is not needed.
2932
*
3033
* @author Petteri Pitkanen
3134
*/

hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/Scanner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public interface Scanner {
3232
*/
3333
ScanResult scan(ScanEnvironment environment, ScanOptions options, ScanParameters params);
3434

35+
/**
36+
* @deprecated (since 7.0) Not used; no replacement.
37+
*/
38+
@Deprecated
3539
default void setArchiveDescriptorFactory(ArchiveDescriptorFactory archiveDescriptorFactory){
3640
throw new UnsupportedOperationException();
3741
}

0 commit comments

Comments
 (0)