Interface ArtifactGeneratorFactory
-
public interface ArtifactGeneratorFactory
A factory to create artifact generators. Artifact generators can contribute additional artifacts during the installation/deployment of artifacts.- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARTIFACT_GENERATOR_IDArtifact property that carries generator id.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetPriority()The priority of this factory.ArtifactGeneratornewInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)Creates a new artifact generator for the specified deploy request.ArtifactGeneratornewInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request)Creates a new artifact generator for the specified install request.
-
-
-
Field Detail
-
ARTIFACT_GENERATOR_ID
static final java.lang.String ARTIFACT_GENERATOR_ID
Artifact property that carries generator id. Generated artifacts should have this property set.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
ArtifactGenerator newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request)
Creates a new artifact generator for the specified install request.- Parameters:
session- The repository system session from which to configure the generator, must not benull.request- The install request the metadata generator is used for, must not benull.- Returns:
- The artifact generator for the request or
nullif none.
-
newInstance
ArtifactGenerator newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)
Creates a new artifact generator for the specified deploy request.- Parameters:
session- The repository system session from which to configure the generator, must not benull.request- The deploy request the metadata generator is used for, must not benull.- Returns:
- The artifact generator for the request or
nullif none.
-
getPriority
float getPriority()
The priority of this factory. Factories with higher priority are invoked before those with lower priority.- Returns:
- The priority of this factory.
-
-