Interface FeatureConfigurationBuilder


@ProviderType public interface FeatureConfigurationBuilder
A builder for Feature Model FeatureConfiguration objects.
"NotThreadSafe"
  • Method Details

    • addValue

      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 - The configuration key.
      value - 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:
      This builder.
      Throws:
      IllegalArgumentException - if the value is of an invalid type.
    • addValues

      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 - 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:
      This builder.
      Throws:
      IllegalArgumentException - if a value is of an invalid type or if the same key is provided in different capitalizations (regardless of case).
    • 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:
      The Configuration.