Class DefaultPomFileSupplierFactory

java.lang.Object
org.mule.maven.client.internal.DefaultPomFileSupplierFactory
All Implemented Interfaces:
PomFileSupplierFactory

public class DefaultPomFileSupplierFactory extends Object implements PomFileSupplierFactory
  • Constructor Details

    • DefaultPomFileSupplierFactory

      public DefaultPomFileSupplierFactory()
  • Method Details

    • uncompressPomArtifactSupplier

      public Supplier<File> uncompressPomArtifactSupplier(File artifactFolder, org.mule.maven.pom.parser.api.model.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.

      Specified by:
      uncompressPomArtifactSupplier in interface PomFileSupplierFactory
      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

      public Supplier<File> compressedArtifactSupplier(File artifactFile, org.mule.maven.pom.parser.api.model.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.

      Specified by:
      compressedArtifactSupplier in interface PomFileSupplierFactory
      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.