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

public Interface ArchiveDescriptorFactory

Known Direct Implementers
org.hibernate.boot.archive.internal.StandardArchiveDescriptorFactory, org.hibernate.boot.archive.spi.AbstractArchiveDescriptorFactory
Imports
java.net.URL

Contract for building ArchiveDescriptor instances.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public ArchiveDescriptor

Returns:

The descriptor
buildArchiveDescriptor
(URL
The url to the archive
url
)

Build a descriptor of the archive indicated by the given url

public ArchiveDescriptor

Returns:

The descriptor
buildArchiveDescriptor
(URL
The url to the archive
url
,
String
The path within the given url that refers to the archive
path
)

Build a descriptor of the archive indicated by the path relative to the given url

public URL

Returns:

The URL to the JAR
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
)

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

Returns:

The url from the path?
getURLFromPath
(String
The jar path
jarPath
)

Deprecated Not used!
Not used!

Method Detail

buildArchiveDescriptorback to summary
public ArchiveDescriptor buildArchiveDescriptor(URL url)

Build a descriptor of the archive indicated by the given url

Parameters
url:URL

The url to the archive

Returns:ArchiveDescriptor

The descriptor

buildArchiveDescriptorback to summary
public ArchiveDescriptor buildArchiveDescriptor(URL url, String path)

Build a descriptor of the archive indicated by the path relative to the given url

Parameters
url:URL

The url to the archive

path:String

The path within the given url that refers to the archive

Returns:ArchiveDescriptor

The descriptor

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

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

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

Deprecated

Not used!

Not used!

Parameters
jarPath:String

The jar path

Returns:URL

The url from the path?

Annotations
@Deprecated
@SuppressWarnings:UnusedDeclaration