Top Constructors Methods
org.hibernate.boot.archive.spi

public abstract Class AbstractArchiveDescriptorFactory

extends Object
implements ArchiveDescriptorFactory
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
Imports
java.net.URL, org.hibernate.boot.archive.internal.ArchiveHelper

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ArchiveDescriptor
buildArchiveDescriptor(URL
The url to the archive
url
)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.buildArchiveDescriptor.

Build a descriptor of the archive indicated by the given url
public URL
getJarURLFromURLEntry(URL
The URL to an entry within a JAR
url
,
String
The entry that described the thing referred to by the URL relative to the JAR
entry
)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.getJarURLFromURLEntry.

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.
public URL
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractArchiveDescriptorFactoryback to summary
public AbstractArchiveDescriptorFactory()

Method Detail

buildArchiveDescriptorback to summary
public ArchiveDescriptor buildArchiveDescriptor(URL url)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.buildArchiveDescriptor.

Doc from org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.buildArchiveDescriptor.

Build a descriptor of the archive indicated by the given url

Parameters
url:URL

The url to the archive

Returns:ArchiveDescriptor

The descriptor

Annotations
@Override
getJarURLFromURLEntryback to summary
public URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException

Implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.getJarURLFromURLEntry.

Doc from org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.getJarURLFromURLEntry.

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.

Parameters
url:URL

The URL to an entry within a JAR

entry:String

The entry that described the thing referred to by the URL relative to the JAR

Returns:URL

The URL to the JAR

Annotations
@Override
Exceptions
IllegalArgumentException:
Generally indicates a problem with malformed urls.
getURLFromPathback to summary
public URL getURLFromPath(String jarPath)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.getURLFromPath.

Doc from org.hibernate.boot.archive.spi.ArchiveDescriptorFactory.getURLFromPath.

Not used!

Parameters
jarPath:String

The jar path

Returns:URL

The url from the path?

Annotations
@Override