Package io.quarkus.sbom
Class ApplicationComponent.Builder
java.lang.Object
io.quarkus.sbom.ApplicationComponent
io.quarkus.sbom.ApplicationComponent.Builder
- Enclosing class:
ApplicationComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkus.sbom.ApplicationComponent
ApplicationComponent.Builder -
Field Summary
Fields inherited from class io.quarkus.sbom.ApplicationComponent
coordinates, cpe, dep, dependencies, description, distributionPath, name, path, pedigree, provides, scope, SCOPE_DEVELOPMENT, SCOPE_EXCLUDED, SCOPE_RUNTIME, type, TYPE_FRAMEWORK, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()protected ApplicationComponentsetCoordinates(ArtifactCoords coordinates) Sets the Maven coordinates of a synthetic component that is not backed by aResolvedDependency(e.g. a platform-member product component).Sets the CPE of the component (used for platform-member product components).setDependencies(Collection<ArtifactCoords> dependencies) setDescription(String description) setDistributionPath(String distributionPath) Overrides the component display name (otherwise derived from the coordinates or path).setPedigree(String pedigree) setProvides(Collection<ArtifactCoords> provides) Sets the artifacts this component provides (CycloneDX 1.6dependency.provides).Sets the CycloneDX component type (e.g.setVersion(String version) Methods inherited from class io.quarkus.sbom.ApplicationComponent
builder, getCoordinates, getCpe, getDependencies, getDescription, getDistributionPath, getName, getPath, getPedigree, getProvides, getResolvedDependency, getScope, getType, getVersion
-
Constructor Details
-
Builder
-
-
Method Details
-
setVersion
-
setPath
-
setDistributionPath
-
setResolvedDependency
-
setPedigree
-
setDevelopmentScope
-
setScope
-
setDependencies
-
setCoordinates
Sets the Maven coordinates of a synthetic component that is not backed by aResolvedDependency(e.g. a platform-member product component). The coordinates drive the component's PURL, bom-ref, group, name and version. -
setName
Overrides the component display name (otherwise derived from the coordinates or path). -
setDescription
-
setCpe
Sets the CPE of the component (used for platform-member product components). -
setType
Sets the CycloneDX component type (e.g.ApplicationComponent.TYPE_FRAMEWORK). When unset, the generator derives the type (library for Maven artifacts, file for generic files). -
setProvides
Sets the artifacts this component provides (CycloneDX 1.6dependency.provides). Used for platform-member product components that provide their attributed artifacts. -
build
-
ensureImmutable
- Overrides:
ensureImmutablein classApplicationComponent
-