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)IOExceptionpublic 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.