tag | 775c6ff33afb1195e0ae36700d17f75a7d07cf51 | |
---|---|---|
tagger | Carsten Ziegeler <cziegeler@apache.org> | Tue Oct 29 09:49:11 2019 +0100 |
object | 9683e2b20da80717db3ece616766055d83d900ca |
[maven-release-plugin] copy for tag org.apache.sling.feature.extension.apiregions-1.1.0
commit | 9683e2b20da80717db3ece616766055d83d900ca | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Tue Oct 29 09:48:55 2019 +0100 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Tue Oct 29 09:48:55 2019 +0100 |
tree | 3a1623bb14ef4941de52092dc52655edbd9fe42f | |
parent | 0b10329493f934f4672802762c85cb7a81367588 [diff] |
[maven-release-plugin] prepare release org.apache.sling.feature.extension.apiregions-1.1.0
This component contains extensions relating to the API Regions component. For more information about API Regions see https://github.com/apache/sling-org-apache-sling-feature/blob/master/apicontroller.md
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.