Class 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 Detail

      • rootUrl

        protected URL rootUrl
      • descriptorLocation

        protected String descriptorLocation
      • root

        protected org.jboss.vfs.VirtualFile root
      • files

        protected Map<String,​org.jboss.vfs.VirtualFile> files
    • Method Detail

      • getEntries

        public Iterator<String> getEntries()
        Specified by:
        getEntries in interface org.eclipse.persistence.jpa.Archive
      • 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