Class AbstractScannerImpl.ArchiveContextImpl
- java.lang.Object
-
- org.hibernate.boot.archive.scan.spi.AbstractScannerImpl.ArchiveContextImpl
-
- All Implemented Interfaces:
ArchiveContext
- Enclosing class:
- AbstractScannerImpl
public static class AbstractScannerImpl.ArchiveContextImpl extends Object implements ArchiveContext
-
-
Constructor Summary
Constructors Constructor Description ArchiveContextImpl(boolean isRootUrl, ScanResultCollector scanResultCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRootUrl()
Is the archive described (and being visited) the root url for the persistence-unit?ArchiveEntryHandler
obtainArchiveEntryHandler(ArchiveEntry entry)
Get the handler for the given entry, which generally is indicated by the entry type (a.class
file, a mapping file, etc).
-
-
-
Constructor Detail
-
ArchiveContextImpl
public ArchiveContextImpl(boolean isRootUrl, ScanResultCollector scanResultCollector)
-
-
Method Detail
-
isRootUrl
public boolean isRootUrl()
Description copied from interface:ArchiveContext
Is the archive described (and being visited) the root url for the persistence-unit?- Specified by:
isRootUrl
in interfaceArchiveContext
- Returns:
true
if it is the root url
-
obtainArchiveEntryHandler
public ArchiveEntryHandler obtainArchiveEntryHandler(ArchiveEntry entry)
Description copied from interface:ArchiveContext
Get the handler for the given entry, which generally is indicated by the entry type (a.class
file, a mapping file, etc).- Specified by:
obtainArchiveEntryHandler
in interfaceArchiveContext
- Parameters:
entry
- The archive entry- Returns:
- The appropriate handler for the entry
-
-