Interface PomFileSupplierFactory


public interface PomFileSupplierFactory
Factory class to create Supplier<File> instances to discover pom files from artifact.
Since:
1.0
  • Method Details

    • uncompressPomArtifactSupplier

      Supplier<File> uncompressPomArtifactSupplier(File artifactFolder, BundleDescriptor artifactBundleDescriptor)
      Pom file supplier that retrieves the pom file location from an artifact folder.

      It is expected that the artifact folows the maven convention for the location of the pom file.

      Parameters:
      artifactFolder - the folder with the uncompressed maven artifact.
      artifactBundleDescriptor - the descriptor of the maven artifact.
      Returns:
      a supplier that retrieves the pom file location from an artifact folder.
    • compressedArtifactSupplier

      Supplier<File> compressedArtifactSupplier(File artifactFile, BundleDescriptor artifactBundleDescriptor, File temporaryFolder)
      Pom file supplier that retrieves the pom file location from a compressed artifact.

      It will use a temporary folder to be able to create a File object to point to.

      Parameters:
      artifactFile - the compressed artifact file.
      artifactBundleDescriptor - the bundle descriptor.
      temporaryFolder - the temporary folder to use to create the pom file.
      Returns:
      a supplier that retrieves the pom file location from the compressed artifact.