public final class MetadataBuildItemResolver extends Object implements BuildItemResolver
BuildItemResolver that uses the InitializrMetadata to resolve build
items against a given platform Version.| 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)
BuildItemResolverDependency with the specified id.resolveDependency in interface BuildItemResolverid - the id of the dependencyDependency or null if none is foundpublic BillOfMaterials resolveBom(String id)
BuildItemResolverBillOfMaterials with the specified id.resolveBom in interface BuildItemResolverid - the id of the bomBillOfMaterials or null if none is foundpublic MavenRepository resolveRepository(String id)
BuildItemResolverrepository with the specified id.resolveRepository in interface BuildItemResolverid - the id of the bomMavenRepository or null if none is foundCopyright © 2020 Pivotal Software, Inc.. All rights reserved.