Small change to FeatureBuilder to make it more consistent.
Changed addCategory into addCategories.
@@ -27,14 +27,6 @@ import org.osgi.annotation.versioning.ProviderType;
*/
@ProviderType
public interface FeatureBuilder {
- /**
- * Adds a category to the Feature.
- *
- * @param category The Category.
- * @return This builder.
- */
- FeatureBuilder addCategory(String category);
-
/**
* Set the Feature Complete flag.
*
@@ -104,8 +96,17 @@ public interface FeatureBuilder {
*/
FeatureBuilder addBundles(FeatureBundle ... bundles);
+ /**
+ * Adds one or more categories to the Feature.
+ *
+ * @param categories The Categories.
+ * @return This builder.
+ */
+ FeatureBuilder addCategories(String... categories);
+
/**
* Add Configurations to the Feature.
+ *
* @param configs The Configurations to add.
* @return This builder.
*/
