Class JsonConfigurationSerializer
java.lang.Object
org.apache.sling.installer.core.impl.serializer.JsonConfigurationSerializer
- All Implemented Interfaces:
ConfigurationSerializer
Serializes dictionary configuration objects (as specified in the configuration admin) into JSON format.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Dictionary<String, Object> dictionary, OutputStream outputStream) Serializes the given dictionary (usually retrieved from OSGi Config Admin) into a specific format.
-
Constructor Details
-
JsonConfigurationSerializer
public JsonConfigurationSerializer()
-
-
Method Details
-
serialize
public void serialize(Dictionary<String, Object> dictionary, OutputStream outputStream) throws IOExceptionDescription copied from interface:ConfigurationSerializer
Serializes the given dictionary (usually retrieved from OSGi Config Admin) into a specific format. Leaves the output stream open.- Specified by:
serialize
in interfaceConfigurationSerializer
- Throws:
IOException
-