Class VFSArchive

java.lang.Object
org.jipijapa.eclipselink.VFSArchive
All Implemented Interfaces:
org.eclipse.persistence.jpa.Archive

public class VFSArchive extends Object implements org.eclipse.persistence.jpa.Archive
This is the guts of the Eclipse-to-JBossAS7 integration for automatic entity class discovery. The entry point is JBossArchiveFactoryImpl; see there for how to use this.
Author:
Rich DiCroce
  • Field Details

    • rootUrl

      protected URL rootUrl
    • descriptorLocation

      protected String descriptorLocation
    • root

      protected org.jboss.vfs.VirtualFile root
    • files

      protected Map<String,org.jboss.vfs.VirtualFile> files
  • Constructor Details

  • Method Details

    • getEntries

      public Iterator<String> getEntries()
      Specified by:
      getEntries in interface org.eclipse.persistence.jpa.Archive
    • getEntry

      public InputStream getEntry(String entryPath) throws IOException
      Specified by:
      getEntry in interface org.eclipse.persistence.jpa.Archive
      Throws:
      IOException
    • getEntryAsURL

      public URL getEntryAsURL(String entryPath) throws IOException
      Specified by:
      getEntryAsURL in interface org.eclipse.persistence.jpa.Archive
      Throws:
      IOException
    • getRootURL

      public URL getRootURL()
      Specified by:
      getRootURL in interface org.eclipse.persistence.jpa.Archive
    • getDescriptorStream

      public InputStream getDescriptorStream() throws IOException
      Specified by:
      getDescriptorStream in interface org.eclipse.persistence.jpa.Archive
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface org.eclipse.persistence.jpa.Archive