Package org.hibernate.boot.archive.spi
Class AbstractArchiveDescriptorFactory
- java.lang.Object
-
- org.hibernate.boot.archive.spi.AbstractArchiveDescriptorFactory
-
- All Implemented Interfaces:
ArchiveDescriptorFactory
public abstract class AbstractArchiveDescriptorFactory extends Object implements ArchiveDescriptorFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractArchiveDescriptorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveDescriptor
buildArchiveDescriptor(URL url)
Build a descriptor of the archive indicated by the given urlURL
getJarURLFromURLEntry(URL url, String entry)
Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
buildArchiveDescriptor
-
-
-
-
Method Detail
-
buildArchiveDescriptor
public ArchiveDescriptor buildArchiveDescriptor(URL url)
Description copied from interface:ArchiveDescriptorFactory
Build a descriptor of the archive indicated by the given url- Specified by:
buildArchiveDescriptor
in interfaceArchiveDescriptorFactory
- Parameters:
url
- The url to the archive- Returns:
- The descriptor
-
getJarURLFromURLEntry
public URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
Description copied from interface:ArchiveDescriptorFactory
Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.- Specified by:
getJarURLFromURLEntry
in interfaceArchiveDescriptorFactory
- Parameters:
url
- The URL to an entry within a JARentry
- The entry that described the thing referred to by the URL relative to the JAR- Returns:
- The URL to the JAR
- Throws:
IllegalArgumentException
- Generally indicates a problem with malformed urls.
-
-