You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/03/27 11:12:27 UTC

[sling-org-apache-sling-feature] branch master updated: Update documentation and remove obsolete docs

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature.git


The following commit(s) were added to refs/heads/master by this push:
     new a4b9b5a  Update documentation and remove obsolete docs
a4b9b5a is described below

commit a4b9b5a8b0ba508a391d7d1c506bec09767fa1d8
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Mar 27 12:12:05 2020 +0100

    Update documentation and remove obsolete docs
---
 docs/features.md |  60 ++++++++++---
 prototype.md     | 256 -------------------------------------------------------
 readme.md        |  27 ++----
 requirements.md  | 119 --------------------------
 4 files changed, 54 insertions(+), 408 deletions(-)

diff --git a/docs/features.md b/docs/features.md
index def3c19..1a43991 100644
--- a/docs/features.md
+++ b/docs/features.md
@@ -99,6 +99,30 @@ A feature with configurations:
 }
 ```
 
+### Configurations belonging to Bundles
+
+In most cases, configurations belong to a bundle. The most common use case is a configuration for a (Declarative Service) component. Therefore instead of having a separate configurations section, it is more intuitive to specify configurations as part of a bundle. The benefit of this approach is, that it can easily be decided if a configuration is to be used: if exactly that bundle is used, the configurations are used; otherwise they are not.
+
+Instead of defining configurations globally for the feature as seen above, a configuration can be specified as part of a bundle.
+
+```
+A feature with a configuration attached to a bundle:
+{
+  "id" : "org.apache.sling:org.apache.sling.core.feature:slingosgifeature:1.0.0",
+  "bundles" : [
+    {
+      "id" : "org.apache.sling:security-server:2.2.0",
+      "configurations" : {
+        "org.apache.sling.security.Server" : {
+          "debug" : true,
+          "port" : 4920
+        }
+      }
+    }
+  ]
+```
+}
+
 ## OSGi Framework properties
 
 Apart from OSGi configurations, sometimes OSGi framework properties are used for configurations. Framework properties are key value pairs where the value is a string. They can be specified with the 'framework-properties' key in the feature:
@@ -118,7 +142,7 @@ A feature with framework properties:
 
 In order to avoid a concept like *Require-Bundle* a feature does not explicitly declare dependencies to other features. These are declared by the required capabilities, either explicit or implicit. The implicit requirements are calculated by inspecting the contained bundles (and potentially other artifacts like content packages).
 
-Features can also explicitly declare additional requirements they have over and above the ones coming from the bundles. This is done in the `requirements` section of the feature.
+Features can also explicitly declare additional requirements they have over and above the ones coming from the bundles. This is done in the `requirements` section of the feature. Each requirement has a namespace and optional directives and attributes.
 
 ```
 A feature declaring additional requirements:
@@ -126,19 +150,16 @@ A feature declaring additional requirements:
   "id" : "org.apache.sling:org.apache.sling.core.feature:slingosgifeature:1.0.0",
   "requirements" : [
     {
-      "namespace" : "osgi.implementation",
-      "attributes" : {
-        "name" : "value"
-      },
+      "namespace" : "osgi.contract",
       "directives" : {
-        "name" : "value"
+          "filter" : "(&(osgi.contract=JavaServlet)(version=3.1))"
       }
     }
   ]
 }
 ```
 
-Features can declare additional capabilities that are provided by the feature in addition to the capabilities provided by the bundles. For example a number of bundles might together provide an `osgi.implementation` capability, which is not provided by any of those bundles individually. The Feature can be used to add this capability to the provided set. These additional capabilities are specified in the `capabilities` section of the feature.
+Features can declare additional capabilities that are provided by the feature in addition to the capabilities provided by the bundles. For example a number of bundles might together provide an `osgi.implementation` capability, which is not provided by any of those bundles individually. The Feature can be used to add this capability to the provided set. These additional capabilities are specified in the `capabilities` section of the feature. Each capability has a namespace and optional di [...]
 
 ```
 A feature declaring additional capabilities:
@@ -146,13 +167,14 @@ A feature declaring additional capabilities:
   "id" : "org.apache.sling:org.apache.sling.core.feature:slingosgifeature:1.0.0",
   "capabilities" : [
     {
-      "namespace" : "osgi.implementation",
-      "attributes" : {
-        "name" : "value"
-      },
-      "directives" : {
-        "name" : "value"
-      }
+       "namespace" : "osgi.implementation",
+       "attributes" : {
+             "osgi.implementation" : "osgi.http",
+             "version:Version" : "1.1"
+       },
+       "directives" : {
+             "uses" : "javax.servlet,javax.servlet.http,org.osgi.service.http.context,org.osgi.service.http.whiteboard"
+       }
     }
   ]
 }
@@ -226,3 +248,13 @@ overrides the one coming from the prototype.
 `Artifact` these are handled just like bundles. Extension merge plugins can be configured to perform custom merging.
 
 Prototypes can provide a useful way to manipulate existing features. For example to replace a bundle in an existing feature and deliver this as a modified feature.
+
+## Relation to Repository Specification (Chapter 132)
+
+There are two major differences between a repository as described in the [Repository Service Description](https://osgi.org/specification/osgi.cmpn/7.0.0/service.repository.html) and the feature model. A repository contains a list of more or less unrelated resources whereas a feature describes resources as a unit. For example a feature allows to define a bundle together with OSGi configurations - which ensures that whenever this feature is used, the bundle *together with* the configuratio [...]
+
+The second difference is the handling of requirements and capabilities. While a repository is supposed to list all requirements and capabilities of a resource as part of the description, the feature model does not require this. As the feature model refers to the bundle and the bundle has the requirements and capabilities as metadata, there is no need to repeat that information.
+
+By these two differences you can already tell, that a repository contents is usually generated by tools while a feature is usually a human created resource. While it is possible to create a repository index out of a feature, the other way round does not work as the repository has no standard way to define relationships between resources.
+
+However, the approaches can of course be combined. If a feature has requirements which are not fulfilled by the feature itself, a repository can be used to find the matching capabilities.
diff --git a/prototype.md b/prototype.md
deleted file mode 100644
index 9d58dd0..0000000
--- a/prototype.md
+++ /dev/null
@@ -1,256 +0,0 @@
-# Prototype
-
-Note: This document describes the initial prototype - it is outdated and replaced by the [actual feature model](readme.md)
-
-The prototype uses JSON as a well defined and understood format. This fits nicely with the new OSGi R7 JSON format for configurations.
-
-A model file describes a feature. A feature consists of:
-* A unique id and version (see Feature Identity below)
-* A list of bundles described through maven coordinates
-  * Grouped by start level (required)
-  * Additional metadata like a hash etc. (optional)
-  * Configurations (optional)
-* A set of global configurations
-* A set of framework properties
-* A list of provided capabilities
-* A list of required capabilities
-* A set of includes (of other features) described through maven coordinates
-  * Modifications (removals) of the includes (optional)
-* Extensions (optional)
-  * A list of repoinit instructions
-  * A set of content packages described through maven coordinates
-    * Additional metadata like a hash etc. (optional)
-    * Configurations (optional)
-
-Notes for users of Apache Sling's provisioning model:
-
-* No support for run modes in the model - run modes can be modeled through separate features
-
-# Feature Identity
-
-A feature has a unique id. Maven coordinates (https://maven.apache.org/pom.html#Maven_Coordinates) provide a well defined and accepted way of uniquely defining such an id. The coordinates include at least a group id, an artifact id, a version and a type/packaging. A classifier is optional.
-
-While group id, artifact id, version and the optional classifier can be freely choosen for a feature, the type/packaging is defined as "osgifeature".
-
-TBD: Is "osgifeature" a good type?
-
-# Maven Coordinates
-
-Maven coordinates are used to define the feature id and to refer to artifacts contained in the feature, e.g. bundles, content packages or other features. There are two supported ways to write down such a coordinate:
-
-* Using a colon as a separator for the parts: groupId:artifactId[:type[:classifier]]:version as defined in https://maven.apache.org/pom.html#Maven_Coordinates
-* Using a mvn URL: 'mvn:' group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] ] ] ]
-
-In some cases only the coordinates are specified as a string in one of the above mentioned formats. In other cases, the artifact is described through a JSON object. In that case, the *id* property holds the coordinates in one of the formats.
-
-# Requirements and Capabilities vs Dependencies
-
-In order to avoid a concept like "Require-Bundle" a feature does not explicitly declare dependencies to other features. These are declared by the required capabilities, either explicit or implicit. The implicit requirements are calculated by inspecting the contained bundles (and potentially other artifacts like content packages ).
-
-Once a feature is processed by tooling, the tooling might create a full list of requirements and capabilities and add this information in a special section to the final feature. This information can be used by tooling to validate an instance (see below) and avoids rescanning the binary artifacts. However this "cached" information is optional and tooling must work without it (which means it needs access to the binaries in that case). TBD the name and format of this information.
-
-# Feature Header
-
-The JSON feature object has the following properties:
-
-* *id* : The feature id as described above. Defining the type is optional, if it is not defined, it defaults to "osgifeature".
-* *title* : Optional title for the feature.
-* *description* : Optional long text description of the feature.
-* *vendor* : Optional vendor information.
-* *license* : Optional license information
-
-# Bundles
-
-The JSON feature object might contain a *bundles* property holding a JSON array with the bundles contained in this feature. The values in this array can either be a string holding the coordinates for the bundle or a JSON object if additional properties need to be specified. The JSON object supports the following properties:
-
-* *id* : The id of the bundle (maven coordinates). This property is required.
-* *start-order* : The value is an integer greater or equals to 1. This specifies the start order of the bundle. The start-order specifies the start order of the bundle in relation to other bundles in the feature. Bundles are started in ascending order and stopped in descending order according to the start-order directive values. Bundles with the same start-order value may be started and stopped in any order in relation to each other. There is no default value for start-order. If the start order
-is not specified then the bundle is started in any order.
-* *resolution* : The value is either "mandatory" or "optional". A mandatory bundle needs to be satisfied; an optional bundle does not need to be satisfied. The default value is mandatory.
-
-TBD: The implementation currently uses the map based configuration. It needs to change.
-
-# Includes
-
-Includes allow an aggregation of features and a modification of the included feature: each entity listed in the included feature can be removed, e.g a configuration or a bundle. The list of includes must not contain duplicates (not comparing the version of the includes). If there are duplicates, the feature is invalid.
-
-Once a feature is processed, included references are removed and the content of the included features becomes part of the current feature. The following algorithm applies:
-
-* Includes are processed in the order they are defined in the model. The current feature (containing the includes) is used last which means the algorithm starts with the first included feature.
-* Removal instructions for an include are handled first
-* A clash of bundles or content packages is resolved by picking the latest version (not the highest!)
-* Configurations will be merged by default, later ones potentially overriding newer ones:
-  * If the same property is declared in more than one feature, the last one wins - in case of an array value, this requires redeclaring all values (if they are meant to be kept)
-  * Configurations can be bound to a bundle. When two features are merged, all cases can occur: both might be bound to the same bundle (symbolic name), both might not be bound, they might be bound to different bundles (symbolic name), or one might be bound and the other one might not. As configurations are handled as a set regardless of whether they are bound to a bundle or not, the information of the belonging bundle is handled like a property in the configuration. This means:
-    * If the last configuration belongs to a bundle, this relationship is kept
-    * If the last configuration does not belong to a bundle and has no property removal instruction, the relationship from the first bundle is used (if there is one)
-    * If the last configuration has a property removal instruction for the bundle relationship, the resulting configuration is unbound
-* Later framework properties overwrite newer ones
-* Capabilities and requirements are appended - this might result in duplicates, but that doesn't really hurt in practice.
-* Extensions are handled in an extension specific way:
-    * repoinit is just aggregated (appended)
-    * artifact extensions are handled like bundles
-
-While includes must not be used for assembling an application, they provide an important concept for manipulating existing features. For example to replace a bundle in an existing feature and deliver this modified feature.
-
-# Extensions
-
-An extension has a unique name and a type which can either be text, JSON or artifacts. Depending on the type, inheritance is performed like this:
-* For type text: simple appended
-* For type JSON: merging of the JSON structure, later arriving properties overriding existing ones
-* For type artifacts: merging of the artifacts, higher version wins
-
-# Handling of Environments
-
-A feature itself has no special support for environments (prod, test, dev). In practice it is very unlikely that a single file exists containing configurations for all environments, especially as the configuration might contain secrets, credentials, urls for production services etc which are not meant to be given out in public (or to the dev department). Instead, a separate feature for an environment can be written and maintained by the different share holders which adds the environment  [...]
-
-# Bundles and start levels
-
-Each bundle needs to be explicitly assigned to a start level. There is no default start level as a default start level is not defined in the OSGi spec. In addition, it is a little bit confusing when looking at the model when there is a list of bundles without a start level. Which start level do these have? It is better to be explicit.
-
-However as soon as you have more than one feature and especially if these are authored by different authors, start level handling becomes more tricky. Assigning correct OSGi start levels in such scenarios would require to know all features upfront. Therefore this start level information is interpret as follows: instead of directly mapping it to a start level in the OSGi framework, it defines just the startup order of bundles within a feature. Features are then started in respect of their [...]
-
-# Configurations belonging to Bundles
-
-In most cases, configurations belong to a bundle. The most common use case is a configuration for a (DS) component. Therefore instead of having a separate configurations section, it is more intuitiv to specify configurations as part of a bundle. The benefit of this approach is, that it can easily be decided if a configuration is to be used: if exactly that bundle is used, the configurations are used; otherwise they are not.
-
-However, there might be situations where it is not clear to which bundle a configuration belongs or the configuration might be a cross cutting concern spawning across multiple bundles. Therefore it is still possible to have configurations not related to a particular bundle.
-
-In fact, configurations - whether they are declared as part of a bundle or not - are all managed in a single set for a feature. See above for how includes etc. are handled.
-
-# Example
-
-This is a feature example:
-
-    {
-      "id" : "org.apache.sling:my.app:feature:optional:1.0",
-
-      "includes" : [
-         {
-             "id" : "org.apache.sling:sling:9",
-             "removals" : {
-                 "configurations" : [
-                 ],
-                 "bundles": [
-                 ],
-                 "framework-properties" : [
-                 ]
-             }
-         }
-      ],
-      "requirements" : [
-          {
-              "namespace" : "osgi.contract",
-              "directives" : {
-                  "filter" : "(&(osgi.contract=JavaServlet)(version=3.1))"
-              }
-          }
-      ],
-      "capabilities" : [
-        {
-             "namespace" : "osgi.implementation",
-             "attributes" : {
-                   "osgi.implementation" : "osgi.http",
-                   "version:Version" : "1.1"
-             },
-             "directives" : {
-                   "uses" : "javax.servlet,javax.servlet.http,org.osgi.service.http.context,org.osgi.service.http.whiteboard"
-             }
-        },
-        {
-             "namespace" : osgi.service",
-             "attributes" : {
-                  "objectClass:List<String>" : "org.osgi.service.http.runtime.HttpServiceRuntime"
-             },
-             "directives" {
-                  "uses" : "org.osgi.service.http.runtime,org.osgi.service.http.runtime.dto"
-             }
-        }
-      ],
-      "framework-properties" {
-        "foo" : 1,
-        "brave" : "something",
-        "org.apache.felix.scr.directory" : "launchpad/scr"
-      },
-      "bundles" : {
-        "1" : [
-            {
-              "id" : "org.apache.sling:security-server:2.2.0",
-              "hash" : "4632463464363646436"
-            },
-            "org.apache.sling:application-bundle:2.0.0",
-            "org.apache.sling:another-bundle:2.1.0"
-          ],
-        "2" : [
-            "org.apache.sling:foo-xyz:1.2.3"
-          ]
-      },
-      "configurations" {
-        "my.pid" {
-           "foo" : 5,
-           "bar" : "test",
-           "number:Integer" : 7
-        },
-        "my.factory.pid~name" {
-           "a.value" : "yeah"
-        }
-    }
-
-# Relation to Repository Specification (Chapter 132)
-
-There are two major differences between a repository as described in the Repository Service Description and the feature model. A repository contains a list of more or less unrelated resources whereas a feature describes resources as a unit. For example a feature allows to define a bundle together with OSGi configurations - which ensures that whenever this feature is used, the bundle *together with* the configurations are deployed. A repository can only describe the bundle as a separate r [...]
-
-The second difference is the handling of requirements and capabilities. While a repository is supposed to list all requirements and capabilities of a resource as part of the description, the feature model does not require this. As the feature model refers to the bundle and the bundle has the requirements and capabilities as metadata, there is no need to repeat that information.
-
-By these two differences you can already tell, that a repository contents is usually generated by tools while a feature is usually a human created resource. While it is possible to create a repository index out of a feature, the other way round does not work as the repository has no standard way to define relationships between resources.
-
-# Requirements and Capabilities of Artifacts
-
-The feature model does not allow to explicitly list requirements or capabilities for artifacts. An artifact, for example a bundle, contains this information as part of its metadata. However, to calculate or display these, the tool processing the feature needs to have access to the artifact and needs to extract this. While in general this does not pose a problem by itself, it might happen that the same artifact is processed several times for example during a build process, causing overhead.
-
-To avoid this, a feature might contain an additional section, named "reqscaps" (TODO find a better name). This section is grouped by artifact ids and contains the requirements and capabilities of each artifact. While the requirements and capabilities of a single artifact must be correct and neither leave out or add additional ones, the list of artifacts must not be complete. Tooling will first look into this section to get requirements and capabilities for an artifact. If there are none, [...]
-
-    {
-        ...
-        "reqscaps" : {
-            "org.apache.sling:org.apache.sling.scripting.jsp:1.0.0" : {
-                "capabilities" : [],
-                "requirements" : []
-            }
-        }
-
-
-# Appendix A : Apache Sling's Provisioning Model
-
-The documentation for Apache Sling's provisioning model can be found here: https://sling.apache.org/documentation/development/slingstart.html
-
-## Short description of Sling's provisioning model:
-
-* Text based file format, defining features (several in a single file)
-* A feature can have a name and version (both optional)
-* A feature consists of sections, well defined ones like the run modes and user defined sections
-* A run mode has artifacts (with start levels), configurations and settings (framework properties)
-* Variables can be used throughout a feature
-* Inheritance is supported on a feature base through artifacts
-* Configuration merging is possible
-
-## Advantages of the provisioning model
-
-* Well known by Sling developers, has been introduced some years ago. Some tooling around it
-* Very concise, especially for defining artifacts
-* Extensible, custom sections can be added, e.g used by Sling for repoinit, subsystem definitions, content package definitions
-* Easy diff
-* Special API with semantics related to the prov model (not a general purpose config API)
-
-## Disadvantages of the provisioning model
-
-* Single file can contain more than one feature
-* Custom DSL - no standard format (like JSON)
-* Inheritance and custom artifacts (content packages) are mixed with bundles, which makes processing and understanding more complicated
-* Adding additional info to artifacts looks strange
-* Two formats for configurations and now there is an official JSON based format defined through OSGi R7
-* Strange object relationship between feature and run modes
-* API (object relation) differs from text file (to make the text format easier)
-* Tooling only available as maven plugins, not separate usable
-* Run mode handling is complicating the feature files and processing of those
-* Tightly coupled with the way Sling's launchpad works, therefore no independent OSGi format
diff --git a/readme.md b/readme.md
index 2a3bbae..c121ddc 100644
--- a/readme.md
+++ b/readme.md
@@ -4,19 +4,17 @@
 
 # The Sling OSGi Feature Model
 
-OSGi is a platform capable of running large applications for a variety of purposes, including rich client applications,
-server-side systems and cloud and container based architectures.
+# An Introduction to the Sling Feature Model
 
-As these applications are generally based on many bundles, describing each bundle individually in the application
-definition becomes unwieldy once the number of bundles reaches a certain level. Additionally, OSGi has no mechanism to describe other elements of the application definition, such as configuration or custom artifacts.
+OSGi is a platform capable of running large applications for a variety of purposes, including rich client applications, server-side systems and cloud and container based architectures. Typical OSGi applications are assembled out of bundles and configured through both, OSGi configurations and framework properties (though these are less frequently used than OSGi configurations). Depending on the nature of the application, there might be additional artifact types involved.
 
-While bundles already provide a good way to define rather small, coherent modules, there is often a need to distribute or provision a set of such bundles together with some configuration. Or if you want to build a set of applications (for example microservices) which share certain parts
-(like a foundation) the need for a higher level building block arises.
+As these applications are generally based on many bundles, describing each bundle individually in the application definition becomes unwieldy once the number of bundles reaches a certain level. Additionally, OSGi has no mechanism to describe other elements of the application definition, such as configuration or custom artifacts.
 
-The Sling OSGi Feature Model introduces such a higher level building block to describe OSGi applications or parts of it that encapsulates
-the details of the various components that the feature is built up from. It allows the description of an entire OSGi-based application based
-on reusable components and includes everything related to this application, including bundles, configuration, framework properties, capabilities,
-requirements and custom artifacts.
+While bundles already provide a good way to define rather small, coherent modules, there is often a need to distribute or provision a set of such bundles together with some configuration. Or if you want to build a set of applications (for example microservices) which share certain parts (like a foundation) the need for a higher level building block arises.
+
+The Sling OSGi Feature Model introduces such a higher level building block to describe OSGi applications or parts of it that encapsulates the details of the various components that the feature is built up from. It allows the description of an entire OSGi-based application based on reusable components and includes everything related to this application, including bundles, configuration, framework properties, capabilities, requirements and custom artifacts.
+
+The model is a general purpose feature model and in no way tied to Apache Sling.
 
 ## Features
 
@@ -87,12 +85,3 @@ A launcher for feature models is available in this project: https://github.com/a
 The primary tooling around the feature model is provided through Maven by the Sling Feature Maven Plugin: https://github.com/apache/sling-slingfeature-maven-plugin
 
 See the readme of the plugin for more information.  
-
-# References
-
-The links below provide additional information regarding the Feature Model.
-
-* [Requirements](requirements.md)
-* [File format](https://github.com/apache/sling-org-apache-sling-feature-io/blob/master/design/feature-model.json)
-
-* [Prototype](prototype.md)
diff --git a/requirements.md b/requirements.md
deleted file mode 100644
index 4aff9c0..0000000
--- a/requirements.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# An Introduction to the Sling Feature Model
-
-Typical OSGi applications are assembled out of bundles and configured through both, OSGi configurations and framework properties (though these are less frequently used than OSGi configurations). Depending on the nature of the application, there might be additional artifact types involved.
-
-While bundles already provide a good way to define rather small, coherent modules, there is often a need to distribute or provision a set of such bundles together with some configuration. OSGi Deployment Admin and OSGi subsystems are two ways of trying to solve this issue. The feature model of Apache Karaf and the provisioning model of Apache Sling are two other approaches.
-
-The established common term for such higher level modules is feature. The goals of this proposal are:
-
-* Defining a common mechanism to describe such features.
-* Describe a common algorithm to combine features to either create higher level features or an OSGi applications.
-
-The model is a general purpose feature model and in no way tied to Apache Sling.
-
-# Requirements
-
-## Model Requirements
-
-The feature model is about describing a feature, aggregating features to either build higher level features or an application. The model should meet the following requirements:
-
-* SFM010 - The feature model should be described through a text format which is easily consumable by both humans and machines, that can be edited with common editors and support text-based diff operations.
-* SFM020 - A feature must be describable through a single file.
-* SFM030 - Multiple features must be described in multiple files.
-* SFM040 - The feature model language must support comments.
-* SFM050 - The feature model may support more than one text-based definition language where the language used can be easily inferred, for example from the file extension.
-* SFM060 - The feature model should provide support for long and multi-line values without creating files that become hard to handle.
-* SFM070 - A feature model must have a unique identifier.
-* SFM080 - A feature model must have a version.
-* SFM090 - A feature model must be referenceable through Apache Maven coordinates.
-* SFM100 - It must be possible to specify the bundles belonging to the feature, including version.
-* SFM110 - It must be possible to specify the bundles in a feature in terms of Apache Maven coordinates.
-* SFM120 - The feature model must allow the specification of the order in which the bundles inside the feature are started. This should be relative to when the feature itself is started.
-* SFM130 - It must be possible to define whether a bundle is mandatory or optional.
-* SFM140 - It must be possible to associate any additional metadata like a hash with a bundle.
-* SFM150 - It must be possible to specify the OSGi configurations for a feature.
-* SFM160 - Both normal OSGi configurations as well as factory configurations must be supported. The feature model must support all data types supported by the OSGi Configuration Admin specification.
-* SFM170 - The OSGi configuration resource format as defined in the OSGi Configurator Specification must be supported.
-* SFM180 - It must be possible to associate an OSGi configuration with a bundle within a feature. If the bundle is not resolved at runtime then the associated configuration also does not get installed.
-* SFM190 - It must be possible to define framework properties.
-* SFM200 - The feature model must be extensible to allow other artifacts than bundles.
-* SFM210 - It must be possible to specify the artifacts in a feature in terms of Apache Maven coordinates.
-* SFM220 - It must be possible to associate any additional metadata like a hash with an artifact.
-* SFM230 - It must be possible to define whether an artifact is mandatory or optional.
-* SFM240 - The feature model must be extensible to allow other/additional content.
-* SFM250 - It must be possible to mark the additional content as optional.
-* SFM260 - A feature must be able to specify additional requirements and capabilities that extend the requirements and capabilities from the contained artifacts.
-* SFM270 - A feature must be able to extend other features.
-* SFM280 - A feature must be able to depend on other features through the requirements/capabilities model based on the feature contents. The feature model must be able to deal with circular dependencies. However, there must be no way of explicitly requiring a feature from another feature.
-* SFM290 - The feature model must describe how several features are aggregated to build a higher level feature. This description must include all parts of the feature model (bundles, configurations, framework properties etc.). The description should be general for extension, which means it should describe how extensions are aggregated without requiring the model implementation to know the type of extension.
-* SFM300 - The feature model must describe how several features are combined to build an application. This description must include all parts of the feature model (bundles, configurations, framework properties etc.). The description should be general for extension, which means it should describe how extensions are aggregated without requiring the model implementation to know the type of extension.
-* SFM310 - When features are aggregated, either to create a higher level feature or an application, and a bundle/artifact is encountered with different versions, the feature model must be capable of only using the bundle/artifact with the highest version number. The detection is based on the artifact/bundle id, not the bundle symbolic name.
-* SFM320 - When features are aggregated, either to create a higher level feature or an application, and a bundle/artifact is encountered with different versions, the feature model must be capable of including both versions side-by-side. The detection is based on the artifact/bundle id, not the bundle symbolic name.
-* SFM330 - When features are aggregated, either to create a higher level feature or an application, the resulting feature or application must be minimal meaning it must not contain additional or unneeded artifacts.
-* SFM340 - The feature model must support controlling of the exported API as described in https://github.com/apache/sling-whiteboard/blob/master/featuremodel/apicontroller.md
-* SFM350 - The feature model must calculate the startup order of bundles for an aggregated application respecting the dependencies between features and their contents.
-* SFM360 - The feature model must support variables to be used throughout the model, avoiding the need to repeat the same value several times.
-* SFM370 - When features are aggregated, the ordering of the processing of those features needs to be predictable and stable.
-* SFM380 - The feature model must support adding or overwriting requirements and capabilities of a contained bundle or artifact. This is in oder to correct invalid metadata or to add missing metadata of the artifact.
-* SFM390 - The feature model must support adding or overwriting manifest headers for a bundle. For example to allow to change the bundle symbolic name or to add missing OSGi metadata to a plain jar file.
-* SFM400 - The feature model must support a textual representation for an application aggregated out of features. The format should be as similar as possible to the feature format.
-* SFM410 - It must be possible to specify the framework to launch an application as part of the application model.
-* SFM420 - When features are aggregated to either a higher level feature or an application, the resulting feature or application must still contain the variables.
-* SFM430 - The startup order of features and bundles must be part of the resulting aggregated application model.
-* SFM440 - The feature model must support additional, optional information about the feature like a human readable title, a description, vendor and licensing information.
-* SFM450 - The feature model must use a versioned descriptor format so that if the format evolves in the future users can state in feature model files what version they are written for.
-
-## API Requirements
-
-* SFM460 - The feature model should provide an externally accessible API for reading and writing feature files.
-
-## Analysis Requirements
-
-* SFA010 - Tooling must be able to compute the effective requirements of a feature by inspecting the feature's content and combining this with requirements specified on the feature itself.
-* SFA020 - Tooling must be able to compute the capabilities of a feature by inspecting the feature's content and directly specified capabilities.
-* SFA030 - The feature model should support to store the results of SFA010 and SFA020 as part of the model, avoiding duplicate calculations.
-
-## Resolving Requirements
-
-* SFR010 - Tooling must be able to find all features that provide the capabilities required by a given feature, from a set of available features.
-
-## Packaging requirements
-
-* SFP010 - Tooling must be able to convert a feature to an Apache Karaf Feature
-* SFP020 - Tooling must be able to convert a feature to an Apache Sling Provisioning Model Archive
-* SFP030 - Tooling must be able to convert a feature to an OSGi Subsystem
-* SFP040 - Tooling should be able to create diff packages between two versions of a features
-
-## Launching Requirements
-
-* SFL010 - Tooling must support creating an application model out of one or more features.
-* SFL012 - Tooling must provide a way to add new features to an existing application.
-* SFL015 - Tooling should be able to annotate the application model by stating for each element what its origin is.
-* SFL017 - Tooling must be able to provide a dependency tree of a feature or application model.
-* SFL020 - Tooling must support runtime launching of an application.
-* SFL030 - Tooling must be able to introspect and potentially override the startup order of bundles for an application.
-* SFL035 - Tooling should support overriding certain values, for example a bundle version, in an application model at launch time.
-* SFL040 - Tooling must support substitution of variable values at launch time.
-* SFL045 - If a variable name is not specified the and does not have a default in the feature model, the launching process must not proceed.
-* SFL050 - When an application is started, the install and the startup order of bundles should be the same, ensuring that the bundles are shutdown in reverse order and started in the same order on next startup of the framework.
-* SFL060 - Tooling must support multiple versions of a feature and only select the highest version of a feature to launch the application.
-* SFL070 - Tooling must be able to differentiate between a feature and an update of a feature. An update should only be included in the application of the base feature is included.
-
-## Container Requirements
-
-These requirements are not directly related to the feature model itself, but rather running a feature based OSGi application within a container.
-
-* SFC010 - The feature model must support operation in a container environment such as Docker.
-* SFC020 - The feature model must support micro-services oriented target runtimes where a single micro service runs in its own container containing only the binaries required for that microservice.
-* SFC030 - It must be possible to add new features by placing additional files in a container's file system.
-* SFC040 - It must be possible to alter existing features by placing additional files in the file system. For example to uninstall or update a bundle provided by an existing feature or to alter a configuration set by an existing feature.
-* SFC050 - The feature model must enable the creation of container (Docker) images for a specified set of features.
-
-## Sling Specific Requirements
-
-These requirements are important for Apache Sling in order to have a full replacement for the current provisioning model. Ideally, these requirements are already covered by the general requirements.
-
-* SFS010 - The feature model must support JCR Repository Initialization via the _repoinit_ language. See SFM240
-* SFS020 - The feature model must support features which contains repository content packages. See SFM200
-* SFS030 - The feature model should support all functionality previously provided by the Sling provisioning model.
-* SFS040 - A (Maven) tool must be provided that can create a launchable Sling Starter application from the feature model.