Class CompositeDependencyManagement
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.CompositeDependencyManagement
- All Implemented Interfaces:
DependencyManagement
public class CompositeDependencyManagement extends Object implements DependencyManagement
DependencyManagementthat delegates to one or moreDependencyManagementinstances.- 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 Dependencyfind(String artifactId)Finds the managed dependency with the givenartifactId.List<Dependency>getDependencies()Returns the managed dependencies.StringgetSpringBootVersion()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:DependencyManagementReturns the managed dependencies.- Specified by:
getDependenciesin interfaceDependencyManagement- Returns:
- the managed dependencies
getSpringBootVersion
public String getSpringBootVersion()
Description copied from interface:DependencyManagementReturns the managed version of Spring Boot. May benull.- Specified by:
getSpringBootVersionin interfaceDependencyManagement- Returns:
- the Spring Boot version, or
null
find
public Dependency find(String artifactId)
Description copied from interface:DependencyManagementFinds the managed dependency with the givenartifactId.- Specified by:
findin interfaceDependencyManagement- Parameters:
artifactId- The artifact ID of the dependency to find- Returns:
- the dependency, or
null