tag | 5c5eabbaed20a598c43ba52fdd9e343b2d242c9e | |
---|---|---|
tagger | David Bosschaert <bosschae@adobe.com> | Mon May 13 13:25:24 2019 +0100 |
object | 304b6b5d131116f2b4cf4481c54d684f77f85c3e |
[maven-release-plugin] copy for tag org.apache.sling.feature.extension.apiregions-1.0.2
commit | 304b6b5d131116f2b4cf4481c54d684f77f85c3e | [log] [tgz] |
---|---|---|
author | David Bosschaert <bosschae@adobe.com> | Mon May 13 13:25:09 2019 +0100 |
committer | David Bosschaert <bosschae@adobe.com> | Mon May 13 13:25:09 2019 +0100 |
tree | 5b75bfbfbae7a41c2d3084f34f042ee596f5f509 | |
parent | 77e9ed02e58e7934d03aeae100fc91156792f0f0 [diff] |
[maven-release-plugin] prepare release org.apache.sling.feature.extension.apiregions-1.0.2
This component contains extensions relating to the API Regions component. The following extensions are registered via the ServiceLoader mechanism:
org.apache.sling.feature.builder.MergeHandler
Merge handlers are called when features are merged during the aggregation process.
APIRegionMergeHandler
- This handler knows how to merge API Regions extensions and adds the org-feature
key to the api-regions
sections to record what feature this section originally belonged.
org.apache.sling.feature.builder.PostProcessHandler
PostProcessHandlers are called when a feature contains an api-regions
section.
BundleMappingHandler
- This handler creates a mapping file idbsnver.properties
that maps the Artifact ID to a bundle symbolic name and version. A tilde ~
is used in the value of the map to separate BSN and version.
BundleArtifactFeatureHandler
- This handler creates 3 mapping files:
bundles.properties
: maps bundles to the original feature they were in. A bundle could be from more then one feature.features.properties
: maps features to regions. A feature can be in more than one region.regions.properties
: maps regions to packages. A region can expose more than one package.The location of the files created by the BundleArtifactFeatureHandler
handler is stored in a system property with name sling.feature.apiregions.resource.
+ filename. So to obtain the file name of the bundles.properties
file, make the following call:
System.getProperty("sling.feature.apiregions.resource.bundles.properties")
These properties are read by the https://github.com/apache/sling-org-apache-sling-feature-apiregions component for runtime enforcement of the API Regions.