Package org.osgi.service.feature
Interface FeatureArtifactBuilder
@ProviderType
public interface FeatureArtifactBuilder
A builder for
FeatureArtifact objects.- "NotThreadSafe"
-
Method Summary
Modifier and TypeMethodDescriptionaddMetadata(String key, Object value) Add metadata for this Artifact.addMetadata(Map<String, Object> metadata) Add metadata for this Artifact by providing a map.build()Build the Artifact object.
-
Method Details
-
addMetadata
Add metadata for this Artifact.- Parameters:
key- Metadata key.value- Metadata value.- Returns:
- This builder.
-
addMetadata
Add metadata for this Artifact by providing a map. All metadata in the map is added to any previously provided metadata.- Parameters:
metadata- The map with metadata.- Returns:
- This builder.
-
build
FeatureArtifact build()Build the Artifact object. Can only be called once on a builder. After calling this method the current builder instance cannot be used any more.- Returns:
- The Feature Artifact.
-