Package io.quarkus.sbom
Class SbomContribution
java.lang.Object
io.quarkus.sbom.SbomContribution
Groups component descriptors and their dependency relationships for SBOM contribution.
An SbomContribution contains:
- A flat collection of
ComponentDescriptorinstances (one per software component) - A collection of
ComponentDependenciesthat describe the dependency graph between components, referencing them by bom-ref
The mainComponentBomRef() and runnerPath() properties are reserved for the
Quarkus core contribution. Extensions should use of(Collection, Collection) or
ofComponents(Collection) to create their contributions.
Instances are immutable and safe for use by multiple threads. The SbomContribution.Builder is not
thread-safe and should not be shared between threads.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SbomContribution.Builderbuilder()static SbomContributionof(Collection<ComponentDescriptor> components, Collection<ComponentDependencies> dependencies) Creates a contribution with both components and dependencies.static SbomContributionofComponents(Collection<ComponentDescriptor> components) Creates a contribution with components only (no dependency relationships).
-
Method Details
-
of
public static SbomContribution of(Collection<ComponentDescriptor> components, Collection<ComponentDependencies> dependencies) Creates a contribution with both components and dependencies.- Parameters:
components- the component descriptorsdependencies- the dependency relationships- Returns:
- a new contribution
-
ofComponents
Creates a contribution with components only (no dependency relationships).- Parameters:
components- the component descriptors- Returns:
- a new contribution
-
components
-
dependencies
-
mainComponentBomRef
-
runnerPath
-
builder
-