Class RegionLauncherExtension
java.lang.Object
org.apache.sling.feature.extension.apiregions.launcher.RegionLauncherExtension
- All Implemented Interfaces:
org.apache.sling.feature.launcher.spi.extensions.ExtensionHandler
public class RegionLauncherExtension
extends Object
implements org.apache.sling.feature.launcher.spi.extensions.ExtensionHandler
The
RegionLauncherExtension class implements the ExtensionHandler interface
to handle the API regions extension in the Sling feature model.
This class processes the API regions extension, generates temporary files for feature regions and region packages, and adds the corresponding framework properties to the extension context.
It defines two constants for the filenames of the generated properties files:
FEATURE_REGION_FILENAME- The filename for the feature regions properties file.REGION_PACKAGE_FILENAME- The filename for the region packages properties file.
The handle method performs the following steps:
- Checks if the extension name matches the expected API regions extension name.
- Creates a temporary directory for storing the generated properties files.
- Parses the API regions from the extension's JSON structure.
- Saves the feature regions and region packages mappings to the respective properties files.
- Adds the generated properties files as framework properties to the extension context.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(org.apache.sling.feature.launcher.spi.extensions.ExtensionContext extensionContext, org.apache.sling.feature.Extension extension)
-
Field Details
-
FEATURE_REGION_FILENAME
- See Also:
-
REGION_PACKAGE_FILENAME
- See Also:
-
-
Constructor Details
-
RegionLauncherExtension
public RegionLauncherExtension()
-
-
Method Details