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)
Dependenciesfind in interface DependenciesgroupId - the group IDartifactId - the artifact IDDependency or nullpublic Dependency find(String artifactId)
Dependenciesfind in interface DependenciesartifactId - the artifact IDDependency or nullpublic Iterator<Dependency> iterator()
DependenciesIterator over all managed Dependencies.iterator in interface Iterable<Dependency>iterator in interface Dependenciesprotected void add(AbstractDependencies.ArtifactAndGroupId artifactAndGroupId, Dependency dependency)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.