Top Description Methods
org.osgi.service.feature

public Interface FeatureBundleBuilder

Annotations
@ProviderType
Imports
java.util.Map, org.osgi.annotation.versioning.ProviderType

A builder for Feature Model FeatureBundle objects.

Method Summary

Modifier and TypeMethod and Description
public FeatureBundleBuilder

Returns:

This builder.
addMetadata
(String
Metadata key.
key
,
Object
Metadata value.
value
)

Add metadata for this Bundle.

public FeatureBundleBuilder

Returns:

This builder.
addMetadata
(Map<String, Object>
The map with metadata.
metadata
)

Add metadata for this Bundle by providing a map.

public FeatureBundle

Returns:

The Bundle.
build
()

Build the Bundle object.

Method Detail

addMetadataback to summary
public FeatureBundleBuilder addMetadata(String key, Object value)

Add metadata for this Bundle.

Parameters
key:String

Metadata key.

value:Object

Metadata value.

Returns:FeatureBundleBuilder

This builder.

addMetadataback to summary
public FeatureBundleBuilder addMetadata(Map<String, 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:Map<String, Object>

The map with metadata.

Returns:FeatureBundleBuilder

This builder.

buildback to summary
public 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:FeatureBundle

The Bundle.