Package org.hibernate.boot.archive.spi
Interface ArchiveContext
-
- All Known Implementing Classes:
AbstractScannerImpl.ArchiveContextImpl
public interface ArchiveContext
Describes the context for visiting the entries within an archive
-
-
Method Summary
All Methods Instance Methods Abstract 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).
-
-
-
Method Detail
-
isRootUrl
boolean isRootUrl()
Is the archive described (and being visited) the root url for the persistence-unit?- Returns:
true
if it is the root url
-
obtainArchiveEntryHandler
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).- Parameters:
entry
- The archive entry- Returns:
- The appropriate handler for the entry
-
-