Package org.mule.maven.client.internal
Class DefaultPomFileSupplierFactory
java.lang.Object
org.mule.maven.client.internal.DefaultPomFileSupplierFactory
- All Implemented Interfaces:
PomFileSupplierFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompressedArtifactSupplier(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.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.
-
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:
uncompressPomArtifactSupplierin interfacePomFileSupplierFactory- 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
Fileobject to point to.- Specified by:
compressedArtifactSupplierin interfacePomFileSupplierFactory- 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.
-