Top Description Methods
org.osgi.service.feature

public Interface FeatureConfigurationBuilder

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

A builder for Feature Model FeatureConfiguration objects.

Method Summary

Modifier and TypeMethod and Description
public FeatureConfigurationBuilder

Returns:

This builder.
addValue
(String
The configuration key.
key
,
Object
The configuration value. Acceptable data types are the data type supported by the Configuration Admin service, which are the Primary Property Types as defined for the Filter Syntax in the OSGi Core specification.
value
)

Add a configuration value for this Configuration object.

public FeatureConfigurationBuilder

Returns:

This builder.
addValues
(Map<String, Object>
The map of configuration values to add. Acceptable value types are the data type supported by the Configuration Admin service, which are the Primary Property Types as defined for the Filter Syntax in the OSGi Core specification.
configValues
)

Add a map of configuration values for this Configuration object.

public FeatureConfiguration

Returns:

The Configuration.
build
()

Build the Configuration object.

Method Detail

addValueback to summary
public FeatureConfigurationBuilder addValue(String key, Object value)

Add a configuration value for this Configuration object. If a value with the same key was previously provided (regardless of case) the previous value is overwritten.

Parameters
key:String

The configuration key.

value:Object

The configuration value. Acceptable data types are the data type supported by the Configuration Admin service, which are the Primary Property Types as defined for the Filter Syntax in the OSGi Core specification.

Returns:FeatureConfigurationBuilder

This builder.

Exceptions
IllegalArgumentException:
if the value is of an invalid type.
addValuesback to summary
public FeatureConfigurationBuilder addValues(Map<String, Object> configValues)

Add a map of configuration values for this Configuration object. Values will be added to any previously provided configuration values. If a value with the same key was previously provided (regardless of case) the previous value is overwritten.

Parameters
configValues:Map<String, Object>

The map of configuration values to add. Acceptable value types are the data type supported by the Configuration Admin service, which are the Primary Property Types as defined for the Filter Syntax in the OSGi Core specification.

Returns:FeatureConfigurationBuilder

This builder.

Exceptions
IllegalArgumentException:
if a value is of an invalid type or if the same key is provided in different capitalizations (regardless of case).
buildback to summary
public FeatureConfiguration build()

Build the Configuration object. Can only be called once on a builder. After calling this method the current builder instance cannot be used any more.

Returns:FeatureConfiguration

The Configuration.