Class VirtualFileSystemArchiveDescriptor

java.lang.Object
org.wildfly.persistence.jipijapa.hibernate7.VirtualFileSystemArchiveDescriptor
All Implemented Interfaces:
org.hibernate.boot.archive.spi.ArchiveDescriptor

public class VirtualFileSystemArchiveDescriptor extends Object implements org.hibernate.boot.archive.spi.ArchiveDescriptor
Representation of an archive in the JBoss VirtualFileSystem API in terms of how to walk entries.
Author:
Steve Ebersole
  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualFileSystemArchiveDescriptor(org.jboss.vfs.VirtualFile archiveRoot, String entryBase)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.boot.archive.spi.ArchiveEntry
    Example call from org.hibernate.boot.archive.scan.internal.DisabledScanner that would be used to look up orm.xml in persistence unit root (same path as persistence.xml).
    org.jboss.vfs.VirtualFile
     
    void
    visitArchive(org.hibernate.boot.archive.spi.ArchiveContext archiveContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VirtualFileSystemArchiveDescriptor

      public VirtualFileSystemArchiveDescriptor(org.jboss.vfs.VirtualFile archiveRoot, String entryBase)
  • Method Details

    • getRoot

      public org.jboss.vfs.VirtualFile getRoot()
    • visitArchive

      public void visitArchive(org.hibernate.boot.archive.spi.ArchiveContext archiveContext)
      Specified by:
      visitArchive in interface org.hibernate.boot.archive.spi.ArchiveDescriptor
    • findEntry

      public org.hibernate.boot.archive.spi.ArchiveEntry findEntry(String path)
      Example call from org.hibernate.boot.archive.scan.internal.DisabledScanner that would be used to look up orm.xml in persistence unit root (same path as persistence.xml). Example usage: final ArchiveEntry entry = archiveDescriptor.findEntry( "META-INF/orm.xml" );
      Specified by:
      findEntry in interface org.hibernate.boot.archive.spi.ArchiveDescriptor
      Parameters:
      path - is expected to be META-INF/orm.xml
      Returns: