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 specifiedInitializrMetadataandplatform version. -
Method Summary
Modifier and TypeMethodDescriptionresolveBom(String id) Resolve theBillOfMaterialswith the specifiedid.Resolve theDependencywith the specifiedid.Resolve therepositorywith the specifiedid.
-
Constructor Details
-
MetadataBuildItemResolver
Creates an instance for the specifiedInitializrMetadataandplatform version.- Parameters:
metadata- the metadata to useplatformVersion- the platform version to consider
-
-
Method Details
-
resolveDependency
Description copied from interface:BuildItemResolverResolve theDependencywith the specifiedid.- Specified by:
resolveDependencyin interfaceBuildItemResolver- Parameters:
id- the id of the dependency- Returns:
- the matching
Dependencyornullif none is found
-
resolveBom
Description copied from interface:BuildItemResolverResolve theBillOfMaterialswith the specifiedid.- Specified by:
resolveBomin interfaceBuildItemResolver- Parameters:
id- the id of the bom- Returns:
- the matching
BillOfMaterialsornullif none is found
-
resolveRepository
Description copied from interface:BuildItemResolverResolve therepositorywith the specifiedid.- Specified by:
resolveRepositoryin interfaceBuildItemResolver- Parameters:
id- the id of the bom- Returns:
- the matching
MavenRepositoryornullif none is found
-