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

aQute.bnd.service.merge.MergeResources Maven / Gradle / Ivy

The newest version!
package aQute.bnd.service.merge;

import java.util.Optional;

import aQute.bnd.osgi.Resource;

/**
 * For plugins knowing how to merge two resources.
 */
public interface MergeResources {
	/**
	 * @param path a path (used for validation if the path segment is supported
	 *            for merge)
	 * @param a first resource
	 * @param b second resource to be merged with a
	 * @return the merged resource if possible or an empty optional if merging
	 *         was not possible.
	 */
	Optional tryMerge(String path, Resource a, Resource b);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy