public class PomDependencies extends Object
Dependencies
implementation backed a maven POM.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDependencies.ArtifactAndGroupId
Simple holder for an artifact+group ID.
|
Constructor and Description |
---|
PomDependencies(InputStream effectivePomInputStream)
Create a new
PomDependencies instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
add(AbstractDependencies.ArtifactAndGroupId artifactAndGroupId,
Dependency dependency) |
Dependency |
find(String artifactId)
Find a single dependency for the artifact IDs.
|
Dependency |
find(String groupId,
String artifactId)
Find a single dependency for the given group and artifact IDs.
|
Iterator<Dependency> |
iterator()
Provide an
Iterator over all managed Dependencies . |
public PomDependencies(InputStream effectivePomInputStream)
PomDependencies
instance.effectivePomInputStream
- the effective POM containing resolved versions. The
input stream will be closed once content has been loaded.public Dependency find(String groupId, String artifactId)
Dependencies
find
in interface Dependencies
groupId
- the group IDartifactId
- the artifact IDDependency
or null
public Dependency find(String artifactId)
Dependencies
find
in interface Dependencies
artifactId
- the artifact IDDependency
or null
public Iterator<Dependency> iterator()
Dependencies
Iterator
over all managed Dependencies
.iterator
in interface Iterable<Dependency>
iterator
in interface Dependencies
protected void add(AbstractDependencies.ArtifactAndGroupId artifactAndGroupId, Dependency dependency)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.