Interface ArchiveContext

All Known Implementing Classes:
AbstractScannerImpl.ArchiveContextImpl

public interface ArchiveContext
Describes the context for visiting the entries within an archive
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Is the archive described (and being visited) the root url for the persistence-unit?
    Get the handler for the given entry, which generally is indicated by the entry type (a .class file, a mapping file, etc).
  • Method Details

    • 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