Package org.hibernate.boot.archive.spi
Interface JarFileEntryUrlAdjuster
- All Known Implementing Classes:
StandardArchiveDescriptorFactory
public interface JarFileEntryUrlAdjuster
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.-
Method Summary
Modifier and TypeMethodDescriptionadjustJarFileEntryUrl
(URL url, URL rootUrl) Adjust the given URL, if needed.
-
Method Details
-
adjustJarFileEntryUrl
Adjust the given URL, if needed.- Parameters:
url
- The url to adjustrootUrl
- The root URL, for resolving relative URLs- Returns:
- The adjusted url.
-