org.eclipse.persistence.jpa.rs.util
Class InMemoryArchive
java.lang.Object
org.eclipse.persistence.internal.jpa.deployment.ArchiveBase
org.eclipse.persistence.internal.jpa.deployment.URLArchive
org.eclipse.persistence.jpa.rs.util.InMemoryArchive
- All Implemented Interfaces:
- org.eclipse.persistence.jpa.Archive
public class InMemoryArchive
- extends org.eclipse.persistence.internal.jpa.deployment.URLArchive
This archive is designed for use with dynamic persistence units
it is built with a stream that allows it to read a persistence.xml file and creates a fake base URL
based the classpath location of the InMemoryArchiveClass
- Author:
- tware
Fields inherited from class org.eclipse.persistence.internal.jpa.deployment.ArchiveBase |
descriptorLocation, rootURL |
Methods inherited from class org.eclipse.persistence.internal.jpa.deployment.URLArchive |
getEntries, getEntry, getEntryAsURL |
Methods inherited from class org.eclipse.persistence.internal.jpa.deployment.ArchiveBase |
getDescriptorLocation, getRootURL, setDescriptorLocation, setRootURL, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.jpa.Archive |
getRootURL |
InMemoryArchive
public InMemoryArchive(java.io.InputStream stream)
getDescriptorStream
public java.io.InputStream getDescriptorStream()
throws java.io.IOException
- Specified by:
getDescriptorStream
in interface org.eclipse.persistence.jpa.Archive
- Overrides:
getDescriptorStream
in class org.eclipse.persistence.internal.jpa.deployment.ArchiveBase
- Throws:
java.io.IOException
close
public void close()
- Specified by:
close
in interface org.eclipse.persistence.jpa.Archive
- Overrides:
close
in class org.eclipse.persistence.internal.jpa.deployment.URLArchive