Interface JarFileEntryUrlAdjuster

  • All Known Implementing Classes:
    org.hibernate.boot.archive.internal.StandardArchiveDescriptorFactory, VirtualFileSystemArchiveDescriptorFactory

    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 Detail

      • adjustJarFileEntryUrl

        java.net.URL adjustJarFileEntryUrl​(java.net.URL url,
                                           java.net.URL rootUrl)
        Adjust the given URL, if needed.
        Parameters:
        url - The url to adjust
        rootUrl - The root URL, for resolving relative URLs
        Returns:
        The adjusted url.