public class ApplicationJSONWriter extends Object
| Constructor and Description |
|---|
ApplicationJSONWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
write(Writer writer,
org.apache.sling.feature.Application app)
Writes the application to the writer.
|
protected void |
writeBundles(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.Bundles bundles,
org.apache.sling.feature.Configurations allConfigs) |
protected void |
writeConfigurations(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.Configurations cfgs)
Write the list of configurations into a "configurations" element
|
protected javax.json.JsonObject |
writeConfigurationsMap(org.apache.sling.feature.Configurations cfgs)
Write the list of configurations into a "configurations" element
|
protected void |
writeExtensions(javax.json.JsonObjectBuilder ob,
List<org.apache.sling.feature.Extension> extensions,
org.apache.sling.feature.Configurations allConfigs) |
protected void |
writeFrameworkProperties(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.KeyValueMap props) |
protected void |
writeVariables(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.KeyValueMap vars) |
public static void write(Writer writer, org.apache.sling.feature.Application app) throws IOException
writer - Writerapp - The applicationIOException - If writing failsprotected void writeBundles(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.Bundles bundles,
org.apache.sling.feature.Configurations allConfigs)
protected void writeConfigurations(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.Configurations cfgs)
ob - The json generatorcfgs - The list of configurationsprotected javax.json.JsonObject writeConfigurationsMap(org.apache.sling.feature.Configurations cfgs)
cfgs - The list of configurations.protected void writeVariables(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.KeyValueMap vars)
protected void writeFrameworkProperties(javax.json.JsonObjectBuilder ob,
org.apache.sling.feature.KeyValueMap props)
protected void writeExtensions(javax.json.JsonObjectBuilder ob,
List<org.apache.sling.feature.Extension> extensions,
org.apache.sling.feature.Configurations allConfigs)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.