Package org.eclipse.aether.impl
Interface MetadataGenerator
-
public interface MetadataGenerator
A metadata generator that participates in the installation/deployment of artifacts.- Provisional:
- This type is provisional and can be changed, moved or removed without prior notice.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<? extends org.eclipse.aether.metadata.Metadata>
finish(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
Allows for metadata generation based on the transformed artifacts.java.util.Collection<? extends org.eclipse.aether.metadata.Metadata>
prepare(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
Prepares the generator to transform artifacts.org.eclipse.aether.artifact.Artifact
transformArtifact(org.eclipse.aether.artifact.Artifact artifact)
Enables the metadata generator to transform the specified artifact.
-
-
-
Method Detail
-
prepare
java.util.Collection<? extends org.eclipse.aether.metadata.Metadata> prepare(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
Prepares the generator to transform artifacts.- Parameters:
artifacts
- The artifacts to install/deploy, must not benull
.- Returns:
- The metadata to process (e.g. merge with existing metadata) before artifact transformations, never
null
.
-
transformArtifact
org.eclipse.aether.artifact.Artifact transformArtifact(org.eclipse.aether.artifact.Artifact artifact)
Enables the metadata generator to transform the specified artifact.- Parameters:
artifact
- The artifact to transform, must not benull
.- Returns:
- The transformed artifact (or just the input artifact), never
null
.
-
finish
java.util.Collection<? extends org.eclipse.aether.metadata.Metadata> finish(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
Allows for metadata generation based on the transformed artifacts.- Parameters:
artifacts
- The (transformed) artifacts to install/deploy, must not benull
.- Returns:
- The additional metadata to process after artifact transformations, never
null
.
-
-