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

public Interface JarFileEntryUrlAdjuster

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

Optional contract for ArchiveDescriptorFactory implementations to implement to be able to adjust <jar-file/> URL's defined in persistence.xml files. The intent is to account for relative URLs in a protocol specific way according to the protocol(s) handled by the ArchiveDescriptorFactory.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public URL

Returns:

The adjusted url.
adjustJarFileEntryUrl
(URL
The url to adjust
url
,
URL
The root URL, for resolving relative URLs
rootUrl
)

Adjust the given URL, if needed.

Method Detail

adjustJarFileEntryUrlback to summary
public URL adjustJarFileEntryUrl(URL url, URL rootUrl)

Adjust the given URL, if needed.

Parameters
url:URL

The url to adjust

rootUrl:URL

The root URL, for resolving relative URLs

Returns:URL

The adjusted url.