Class MetadataBuildItemResolver
java.lang.Object
io.spring.initializr.metadata.support.MetadataBuildItemResolver
- All Implemented Interfaces:
BuildItemResolver
A
BuildItemResolver
that uses the InitializrMetadata
to resolve build
items against a given platform Version
.- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from interface io.spring.initializr.generator.buildsystem.BuildItemResolver
NO_OP
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataBuildItemResolver
(InitializrMetadata metadata, Version platformVersion) Creates an instance for the specifiedInitializrMetadata
andplatform version
. -
Method Summary
Modifier and TypeMethodDescriptionresolveBom
(String id) Resolve theBillOfMaterials
with the specifiedid
.Resolve theDependency
with the specifiedid
.Resolve therepository
with the specifiedid
.
-
Constructor Details
-
MetadataBuildItemResolver
Creates an instance for the specifiedInitializrMetadata
andplatform version
.- Parameters:
metadata
- the metadata to useplatformVersion
- the platform version to consider
-
-
Method Details
-
resolveDependency
Description copied from interface:BuildItemResolver
Resolve theDependency
with the specifiedid
.- Specified by:
resolveDependency
in interfaceBuildItemResolver
- Parameters:
id
- the id of the dependency- Returns:
- the matching
Dependency
ornull
if none is found
-
resolveBom
Description copied from interface:BuildItemResolver
Resolve theBillOfMaterials
with the specifiedid
.- Specified by:
resolveBom
in interfaceBuildItemResolver
- Parameters:
id
- the id of the bom- Returns:
- the matching
BillOfMaterials
ornull
if none is found
-
resolveRepository
Description copied from interface:BuildItemResolver
Resolve therepository
with the specifiedid
.- Specified by:
resolveRepository
in interfaceBuildItemResolver
- Parameters:
id
- the id of the bom- Returns:
- the matching
MavenRepository
ornull
if none is found
-