public final class MetadataBuildItemResolver extends Object implements BuildItemResolver
BuildItemResolver
that uses the InitializrMetadata
to resolve build
items against a given platform Version
.NO_OP
Constructor and Description |
---|
MetadataBuildItemResolver(InitializrMetadata metadata,
Version platformVersion)
Creates an instance for the specified
InitializrMetadata and platform version . |
Modifier and Type | Method and Description |
---|---|
BillOfMaterials |
resolveBom(String id)
Resolve the
BillOfMaterials with the specified id . |
Dependency |
resolveDependency(String id)
Resolve the
Dependency with the specified id . |
MavenRepository |
resolveRepository(String id)
Resolve the
repository with the specified id . |
public MetadataBuildItemResolver(InitializrMetadata metadata, Version platformVersion)
InitializrMetadata
and platform version
.metadata
- the metadata to useplatformVersion
- the platform version to considerpublic Dependency resolveDependency(String id)
BuildItemResolver
Dependency
with the specified id
.resolveDependency
in interface BuildItemResolver
id
- the id of the dependencyDependency
or null
if none is foundpublic BillOfMaterials resolveBom(String id)
BuildItemResolver
BillOfMaterials
with the specified id
.resolveBom
in interface BuildItemResolver
id
- the id of the bomBillOfMaterials
or null
if none is foundpublic MavenRepository resolveRepository(String id)
BuildItemResolver
repository
with the specified id
.resolveRepository
in interface BuildItemResolver
id
- the id of the bomMavenRepository
or null
if none is foundCopyright © 2022 Pivotal Software, Inc.. All rights reserved.