public class ArchiveFactoryImpl extends java.lang.Object implements ArchiveFactory
javax.persistence.spi.PersistenceUnitInfo#getPersistenceUnitRootUrl()| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
ArchiveFactoryImpl() |
ArchiveFactoryImpl(java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
Archive |
createArchive(java.net.URL rootUrl,
java.util.Map properties)
Return an instance of an implementer of Archive that can process the URL provided
|
Archive |
createArchive(java.net.URL rootUrl,
java.lang.String descriptorLocation,
java.util.Map properties)
Return an instance of an implementer of Archive that can process the URL provided
This instance will allow access to the persistence descriptor associated with
this archive through the getDescriptorStream() method
|
protected boolean |
isJarInputStream(java.net.URL url)
This method is called for a URL which has neither jar nor file protocol.
|
public ArchiveFactoryImpl()
public ArchiveFactoryImpl(java.util.logging.Logger logger)
public Archive createArchive(java.net.URL rootUrl, java.util.Map properties) throws java.net.URISyntaxException, java.io.IOException
ArchiveFactorycreateArchive in interface ArchiveFactoryjava.net.URISyntaxExceptionjava.io.IOExceptionpublic Archive createArchive(java.net.URL rootUrl, java.lang.String descriptorLocation, java.util.Map properties) throws java.net.URISyntaxException, java.io.IOException
ArchiveFactorycreateArchive in interface ArchiveFactoryjava.net.URISyntaxExceptionjava.io.IOExceptionprotected boolean isJarInputStream(java.net.URL url)
throws java.io.IOException
url - java.io.IOException