Package org.osgi.service.feature
Interface FeatureBundleBuilder
-
@ProviderType public interface FeatureBundleBuilder
A builder for Feature ModelFeatureBundle
objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureBundleBuilder
addMetadata(java.lang.String key, java.lang.Object value)
Add metadata for this Bundle.FeatureBundleBuilder
addMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Add metadata for this Bundle by providing a map.FeatureBundle
build()
Build the Bundle object.
-
-
-
Method Detail
-
addMetadata
FeatureBundleBuilder addMetadata(java.lang.String key, java.lang.Object value)
Add metadata for this Bundle.- Parameters:
key
- Metadata key.value
- Metadata value.- Returns:
- This builder.
-
addMetadata
FeatureBundleBuilder addMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Add metadata for this Bundle 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
FeatureBundle build()
Build the Bundle object. Can only be called once on a builder. After calling this method the current builder instance cannot be used any more.- Returns:
- The Bundle.
-
-