All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.boot.archive.spi.JarFileEntryUrlAdjuster Maven / Gradle / Ivy

There is a newer version: 6.5.0.CR2
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.boot.archive.spi;

import java.net.URL;

/**
 * Optional contract for ArchiveDescriptorFactory implementations to implement
 * to be able to adjust {@code } URL's defined in {@code 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
 */
public interface JarFileEntryUrlAdjuster {
	/**
	 * Adjust the given URL, if needed.
	 *
	 * @param url The url to adjust
	 * @param rootUrl The root URL, for resolving relative URLs
	 *
	 * @return The adjusted url.
	 */
	URL adjustJarFileEntryUrl(URL url, URL rootUrl);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy