Class FactoryConfigurationDescriptionAddition
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
org.apache.sling.feature.extension.apiregions.api.config.ConfigurableEntityAddition
org.apache.sling.feature.extension.apiregions.api.config.FactoryConfigurationDescriptionAddition
Description of an OSGi factory configuration addition
This class is not thread safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the object and set the defaultsprotected jakarta.json.JsonObjectBuilderConvert this object into JSONvoidfromJSONObject(jakarta.json.JsonObject jsonObj) Extract the metadata from the JSON object.Get the internal factory configuration nameMethods inherited from class org.apache.sling.feature.extension.apiregions.api.config.ConfigurableEntityAddition
getPropertyDescriptionAdditionsMethods inherited from class org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
getAttributes, getBoolean, getInteger, getNumber, getString, getString, getStringArray, setDefaults, setString, setStringArray, toJSONObject
-
Constructor Details
-
FactoryConfigurationDescriptionAddition
public FactoryConfigurationDescriptionAddition()
-
-
Method Details
-
clear
public void clear()Clear the object and set the defaults- Overrides:
clearin classConfigurableEntityAddition
-
fromJSONObject
Extract the metadata from the JSON object. This method first callsclear()- Overrides:
fromJSONObjectin classConfigurableEntityAddition- Parameters:
jsonObj- The JSON Object- Throws:
IOException- If JSON parsing fails
-
getInternalNames
Get the internal factory configuration name- Returns:
- Mutable list of internal names
-
createJson
Convert this object into JSON- Overrides:
createJsonin classConfigurableEntityAddition- Returns:
- The json object builder
- Throws:
IOException- If generating the JSON fails
-