commit | 3164dafe0392b1f1f6a1daccf32f6d06e9b19a5b | [log] [tgz] |
---|---|---|
author | David Bosschaert <bosschae@adobe.com> | Thu Nov 29 16:11:51 2018 +0000 |
committer | David Bosschaert <bosschae@adobe.com> | Thu Nov 29 16:11:51 2018 +0000 |
tree | fb8ab31fb4252fc21944b4ab0988d912c5fedc12 | |
parent | 0a34cdf5f6ace295f842426fb69365706bf3b0cf [diff] |
Refactor extension to not use 'org-feature' any more.
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 apiregions.
+ filename. So to obtain the file name of the bundles.properties
file, make the following call:
System.getProperty("apiregions.bundles.properties")