Interface MergeResources

All Known Implementing Classes:
MetaInfServiceMerger

public interface MergeResources
For plugins knowing how to merge two resources.
  • Method Details

    • tryMerge

      Optional<Resource> tryMerge(String path, Resource a, Resource b)
      Parameters:
      path - a path (used for validation if the path segment is supported for merge)
      a - first resource
      b - second resource to be merged with a
      Returns:
      the merged resource if possible or an empty optional if merging was not possible.