public class ArtifactRepository extends Object
EarModule
.Constructor and Description |
---|
ArtifactRepository(Set<Artifact> artifacts,
String mainArtifactId,
ArtifactTypeMappingService artifactTypeMappingService)
Creates a new repository wih the specified artifacts.
|
Modifier and Type | Method and Description |
---|---|
Set<Artifact> |
getArtifacts(String groupId,
String artifactId,
String type)
Returns the artifacts with the specified parameters.
|
Artifact |
getUniqueArtifact(String groupId,
String artifactId,
String type)
Returns the artifact with the specified parameters.
|
Artifact |
getUniqueArtifact(String groupId,
String artifactId,
String type,
String classifier)
Returns the artifact with the specified parameters.
|
public ArtifactRepository(Set<Artifact> artifacts, String mainArtifactId, ArtifactTypeMappingService artifactTypeMappingService)
artifacts
- the artifactsmainArtifactId
- the id to use for the main artifact (no classifier)artifactTypeMappingService
- ArtifactTypeMappingService
public Artifact getUniqueArtifact(String groupId, String artifactId, String type, String classifier)
groupId
- the group idartifactId
- the artifact idtype
- the typeclassifier
- the classifierpublic Artifact getUniqueArtifact(String groupId, String artifactId, String type)
groupId
- the group idartifactId
- the artifact idtype
- the typeCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.