Module org.eclipse.persistence.jpa
Class ArchiveFactoryImpl
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.deployment.ArchiveFactoryImpl
-
- All Implemented Interfaces:
ArchiveFactory
public class ArchiveFactoryImpl extends Object implements ArchiveFactory
This class is written to deal with various URLs that can be returned byPersistenceUnitInfo.getPersistenceUnitRootUrl()- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Constructor Summary
Constructors Constructor Description ArchiveFactoryImpl()ArchiveFactoryImpl(Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivecreateArchive(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() methodArchivecreateArchive(URL rootUrl, Map properties)Return an instance of an implementer of Archive that can process the URL providedprotected booleanisJarInputStream(URL url)This method is called for a URL which has neither jar nor file protocol.
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Constructor Detail
-
ArchiveFactoryImpl
public ArchiveFactoryImpl()
-
ArchiveFactoryImpl
public ArchiveFactoryImpl(Logger logger)
-
-
Method Detail
-
createArchive
public Archive createArchive(URL rootUrl, Map properties) throws URISyntaxException, IOException
Description copied from interface:ArchiveFactoryReturn an instance of an implementer of Archive that can process the URL provided- Specified by:
createArchivein interfaceArchiveFactory- Throws:
URISyntaxExceptionIOException
-
createArchive
public Archive createArchive(URL rootUrl, String descriptorLocation, Map properties) throws URISyntaxException, IOException
Description copied from interface:ArchiveFactoryReturn 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:
createArchivein interfaceArchiveFactory- Throws:
URISyntaxExceptionIOException
-
isJarInputStream
protected boolean isJarInputStream(URL url) throws IOException
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
-
-