public class PropertiesFileDependencies extends Object
Dependencies
backed by an external properties file (of the form created by the
Spring IO platform). The property key should be the groupId and artifactId (in the form
groupId:artifactId) and the value should be the version.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDependencies.ArtifactAndGroupId
Simple holder for an artifact+group ID.
|
Constructor and Description |
---|
PropertiesFileDependencies(InputStream inputStream)
Create a new
PropertiesFileDependencies instance from the specified input
stream. |
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 PropertiesFileDependencies(InputStream inputStream) throws IOException
PropertiesFileDependencies
instance from the specified input
stream.inputStream
- source input stream (will be closed when properties have been
loaded)IOException
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.