Class CompositeDependencyManagement
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.CompositeDependencyManagement
- All Implemented Interfaces:
DependencyManagement
public class CompositeDependencyManagement extends Object implements DependencyManagement
DependencyManagement
that delegates to one or moreDependencyManagement
instances.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description CompositeDependencyManagement(DependencyManagement... delegates)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependency
find(String artifactId)
Finds the managed dependency with the givenartifactId
.List<Dependency>
getDependencies()
Returns the managed dependencies.String
getSpringBootVersion()
Returns the managed version of Spring Boot.
Constructor Detail
CompositeDependencyManagement
public CompositeDependencyManagement(DependencyManagement... delegates)
Method Detail
getDependencies
public List<Dependency> getDependencies()
Description copied from interface:DependencyManagement
Returns the managed dependencies.- Specified by:
getDependencies
in interfaceDependencyManagement
- Returns:
- the managed dependencies
getSpringBootVersion
public String getSpringBootVersion()
Description copied from interface:DependencyManagement
Returns the managed version of Spring Boot. May benull
.- Specified by:
getSpringBootVersion
in interfaceDependencyManagement
- Returns:
- the Spring Boot version, or
null
find
public Dependency find(String artifactId)
Description copied from interface:DependencyManagement
Finds the managed dependency with the givenartifactId
.- Specified by:
find
in interfaceDependencyManagement
- Parameters:
artifactId
- The artifact ID of the dependency to find- Returns:
- the dependency, or
null