Package org.jipijapa.eclipselink
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
-
-
Constructor Summary
Constructors Constructor Description VFSArchive(URL rootUrl, String descriptorLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InputStreamgetDescriptorStream()Iterator<String>getEntries()InputStreamgetEntry(String entryPath)URLgetEntryAsURL(String entryPath)URLgetRootURL()
-
-
-
Constructor Detail
-
VFSArchive
public VFSArchive(URL rootUrl, String descriptorLocation) throws URISyntaxException, IOException
- Throws:
URISyntaxExceptionIOException
-
-
Method Detail
-
getEntries
public Iterator<String> getEntries()
- Specified by:
getEntriesin interfaceorg.eclipse.persistence.jpa.Archive
-
getEntry
public InputStream getEntry(String entryPath) throws IOException
- Specified by:
getEntryin interfaceorg.eclipse.persistence.jpa.Archive- Throws:
IOException
-
getEntryAsURL
public URL getEntryAsURL(String entryPath) throws IOException
- Specified by:
getEntryAsURLin interfaceorg.eclipse.persistence.jpa.Archive- Throws:
IOException
-
getRootURL
public URL getRootURL()
- Specified by:
getRootURLin interfaceorg.eclipse.persistence.jpa.Archive
-
getDescriptorStream
public InputStream getDescriptorStream() throws IOException
- Specified by:
getDescriptorStreamin interfaceorg.eclipse.persistence.jpa.Archive- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceorg.eclipse.persistence.jpa.Archive
-
-