Class FactoryConfigurationDescription
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
org.apache.sling.feature.extension.apiregions.api.config.DescribableEntity
org.apache.sling.feature.extension.apiregions.api.config.ConfigurableEntity
org.apache.sling.feature.extension.apiregions.api.config.FactoryConfigurationDescription
Description of an OSGi factory configuration
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 modeGet the internal factory configuration nameGet the operationsprotected voidApply the non-null default values.voidsetInternalMode(Mode internalMode) Set the internal modeMethods inherited from class org.apache.sling.feature.extension.apiregions.api.config.ConfigurableEntity
getInternalPropertyNames, getMode, getPropertyDescriptions, getRegion, isAllowAdditionalProperties, setAllowAdditionalProperties, setMode, setRegionMethods inherited from class org.apache.sling.feature.extension.apiregions.api.config.DescribableEntity
getDeprecated, getDescription, getEnforceOn, getSince, getTitle, setDeprecated, setDescription, setEnforceOn, setSince, setTitleMethods inherited from class org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
getAttributes, getBoolean, getInteger, getNumber, getString, getString, getStringArray, setString, setStringArray, toJSONObject
-
Constructor Details
-
FactoryConfigurationDescription
public FactoryConfigurationDescription()
-
-
Method Details
-
setDefaults
protected void setDefaults()Description copied from class:AttributeableEntityApply the non-null default values.- Overrides:
setDefaultsin classConfigurableEntity
-
clear
public void clear()Clear the object and set the defaults- Overrides:
clearin classConfigurableEntity
-
fromJSONObject
Extract the metadata from the JSON object. This method first callsclear()- Overrides:
fromJSONObjectin classConfigurableEntity- Parameters:
jsonObj- The JSON Object- Throws:
IOException- If JSON parsing fails
-
getOperations
Get the operations- Returns:
- Mutable set of operations
-
getInternalNames
Get the internal factory configuration name- Returns:
- Mutable list of internal names
-
getInternalMode
Get the internal mode- Returns:
- The internal mode
-
setInternalMode
Set the internal mode- Parameters:
internalMode- The internal mode
-
createJson
Convert this object into JSON- Overrides:
createJsonin classConfigurableEntity- Returns:
- The json object builder
- Throws:
IOException- If generating the JSON fails
-