Class DependencyManagementArtifactCoordinatesResolver
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.DependencyManagementArtifactCoordinatesResolver
- All Implemented Interfaces:
ArtifactCoordinatesResolver
public class DependencyManagementArtifactCoordinatesResolver extends Object implements ArtifactCoordinatesResolver
Constructor Summary
Constructors Constructor Description DependencyManagementArtifactCoordinatesResolver()
DependencyManagementArtifactCoordinatesResolver(DependencyManagement dependencyManagement)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArtifactId(String id)
Gets the artifact id of the artifact identified by the givenmodule
.String
getGroupId(String artifactId)
Gets the group id of the artifact identified by the givenmodule
.String
getVersion(String module)
Gets the version of the artifact identified by the givenmodule
.
Constructor Detail
DependencyManagementArtifactCoordinatesResolver
public DependencyManagementArtifactCoordinatesResolver()
DependencyManagementArtifactCoordinatesResolver
public DependencyManagementArtifactCoordinatesResolver(DependencyManagement dependencyManagement)
Method Detail
getGroupId
public String getGroupId(String artifactId)
Description copied from interface:ArtifactCoordinatesResolver
Gets the group id of the artifact identified by the givenmodule
. Returnsnull
if the artifact is unknown to the resolver.- Specified by:
getGroupId
in interfaceArtifactCoordinatesResolver
- Parameters:
artifactId
- the id of the module- Returns:
- the group id of the module
getArtifactId
public String getArtifactId(String id)
Description copied from interface:ArtifactCoordinatesResolver
Gets the artifact id of the artifact identified by the givenmodule
. Returnsnull
if the artifact is unknown to the resolver.- Specified by:
getArtifactId
in interfaceArtifactCoordinatesResolver
- Parameters:
id
- the id of the module- Returns:
- the artifact id of the module
getVersion
public String getVersion(String module)
Description copied from interface:ArtifactCoordinatesResolver
Gets the version of the artifact identified by the givenmodule
. Returnsnull
if the artifact is unknown to the resolver.- Specified by:
getVersion
in interfaceArtifactCoordinatesResolver
- Parameters:
module
- the id of the module- Returns:
- the version of the module