Module org.eclipse.persistence.jpa
Class ArchiveFactoryImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.deployment.ArchiveFactoryImpl
- All Implemented Interfaces:
ArchiveFactory
This class is written to deal with various URLs that can be returned by
PersistenceUnitInfo.getPersistenceUnitRootUrl()
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateArchive
(URL rootUrl, String descriptorLocation, 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() methodcreateArchive
(URL rootUrl, Map properties) Return an instance of an implementer of Archive that can process the URL providedprotected boolean
isJarInputStream
(URL url) This method is called for a URL which has neither jar nor file protocol.
-
Field Details
-
logger
-
-
Constructor Details
-
ArchiveFactoryImpl
public ArchiveFactoryImpl() -
ArchiveFactoryImpl
-
-
Method Details
-
createArchive
Description copied from interface:ArchiveFactory
Return an instance of an implementer of Archive that can process the URL provided- Specified by:
createArchive
in interfaceArchiveFactory
- Throws:
URISyntaxException
IOException
-
createArchive
public Archive createArchive(URL rootUrl, String descriptorLocation, Map properties) throws URISyntaxException, IOException Description copied from interface:ArchiveFactory
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- Specified by:
createArchive
in interfaceArchiveFactory
- Throws:
URISyntaxException
IOException
-
isJarInputStream
This method is called for a URL which has neither jar nor file protocol. This attempts to find out if we can treat it as a URL from which a JAR format InputStream can be obtained.- Throws:
IOException
-