commit | 5897d46eb4057b3d6c7799431bbc24c96557e360 | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Tue Jan 29 22:54:52 2019 +0100 |
committer | Robert Munteanu <rombert@apache.org> | Tue Jan 29 22:54:52 2019 +0100 |
tree | 9328f7d8668094c1377ef4e72b3cf36e5fc51023 | |
parent | 63e8239c7941399a3e80d97e550d543c4fba0df5 [diff] |
SLING-7245 - Validate pull requests using Jenkins
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")