Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.deployment

public Class ArchiveFactoryImpl

extends Object
implements ArchiveFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.ArchiveFactory
Imports
java.io.File, .IOException, .InputStream, java.net.JarURLConnection, .URI, .URISyntaxException, .URL, java.util.Map, java.util.jar.JarEntry, .JarFile, .JarInputStream, java.util.logging.Logger, .Level, org.eclipse.persistence.internal.helper.Helper, org.eclipse.persistence.jpa.Archive, .ArchiveFactory

This class is written to deal with various URLs that can be returned by jakarta.persistence.spi.PersistenceUnitInfo#getPersistenceUnitRootUrl()
Author
[email protected]

Field Summary

Modifier and TypeField and Description
protected Logger

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Archive
createArchive(URL rootUrl, Map<K, V> properties)

Implements org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

Return an instance of an implementer of Archive that can process the URL provided
public Archive
createArchive(URL rootUrl, String descriptorLocation, Map<K, V> properties)

Implements org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

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(URL url)

This method is called for a URL which has neither jar nor file protocol.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
protected Logger logger

Constructor Detail

ArchiveFactoryImplback to summary
public ArchiveFactoryImpl()
Annotations
@SuppressWarnings:deprecation
ArchiveFactoryImplback to summary
public ArchiveFactoryImpl(Logger logger)

Method Detail

createArchiveback to summary
public Archive createArchive(URL rootUrl, Map<K, V> properties) throws URISyntaxException, IOException

Implements org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

Doc from org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

Return an instance of an implementer of Archive that can process the URL provided

Annotations
@Override
createArchiveback to summary
public Archive createArchive(URL rootUrl, String descriptorLocation, Map<K, V> properties) throws URISyntaxException, IOException

Implements org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

Doc from org.eclipse.persistence.jpa.ArchiveFactory.createArchive.

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

Annotations
@Override
isJarInputStreamback to summary
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.