public static class UpdateVersionsMojo.SimpleFeatureJSONReader
extends org.apache.sling.feature.io.json.FeatureJSONReader
Modifier and Type | Field and Description |
---|---|
protected String |
exceptionPrefix |
protected String |
location |
Modifier | Constructor and Description |
---|---|
protected |
SimpleFeatureJSONReader(String location)
Private constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addConfigurations(Map<String,Object> arg0,
org.apache.sling.feature.Artifact arg1,
org.apache.sling.feature.Configurations arg2) |
protected void |
checkType(String arg0,
Object arg1,
Class<?>... arg2) |
protected org.apache.sling.feature.ArtifactId |
getFeatureId(Map<String,Object> map) |
protected Map<String,Object> |
getJsonMap(javax.json.JsonObject arg0) |
protected String |
getProperty(Map<String,Object> arg0,
String arg1) |
protected String |
minify(Reader arg0) |
static org.apache.sling.feature.Feature |
read(Reader reader,
String location)
Read a new feature from the reader
The reader is not closed.
|
protected void |
readArtifacts(String arg0,
String arg1,
List<org.apache.sling.feature.Artifact> arg2,
Object arg3,
org.apache.sling.feature.Configurations arg4) |
protected void |
readBundles(Map<String,Object> arg0,
org.apache.sling.feature.Bundles arg1,
org.apache.sling.feature.Configurations arg2) |
protected void |
readCapabilities(Map<String,Object> arg0,
List<org.osgi.resource.Capability> arg1) |
protected void |
readConfigurations(Map<String,Object> arg0,
org.apache.sling.feature.Configurations arg1) |
protected void |
readExtensions(Map<String,Object> arg0,
List<String> arg1,
org.apache.sling.feature.Extensions arg2,
org.apache.sling.feature.Configurations arg3) |
protected void |
readFrameworkProperties(Map<String,Object> arg0,
Map<String,String> arg1) |
protected org.apache.sling.feature.Prototype |
readPrototype(Map<String,Object> arg0) |
protected void |
readRequirements(Map<String,Object> arg0,
List<org.apache.sling.feature.MatchingRequirement> arg1) |
protected Map<String,String> |
readVariables(Map<String,Object> arg0,
Map<String,String> arg1) |
protected final String location
protected final String exceptionPrefix
protected SimpleFeatureJSONReader(String location)
location
- Optional locationprotected org.apache.sling.feature.ArtifactId getFeatureId(Map<String,Object> map) throws IOException
getFeatureId
in class org.apache.sling.feature.io.json.FeatureJSONReader
IOException
public static org.apache.sling.feature.Feature read(Reader reader, String location) throws IOException
reader
- The reader for the featurelocation
- Optional locationIOException
- If an IO errors occurs or the JSON is invalid.protected String minify(Reader arg0) throws IOException
IOException
protected String getProperty(Map<String,Object> arg0, String arg1) throws IOException
IOException
protected Map<String,String> readVariables(Map<String,Object> arg0, Map<String,String> arg1) throws IOException
IOException
protected void readBundles(Map<String,Object> arg0, org.apache.sling.feature.Bundles arg1, org.apache.sling.feature.Configurations arg2) throws IOException
IOException
protected void readArtifacts(String arg0, String arg1, List<org.apache.sling.feature.Artifact> arg2, Object arg3, org.apache.sling.feature.Configurations arg4) throws IOException
IOException
protected void addConfigurations(Map<String,Object> arg0, org.apache.sling.feature.Artifact arg1, org.apache.sling.feature.Configurations arg2) throws IOException
IOException
protected void readConfigurations(Map<String,Object> arg0, org.apache.sling.feature.Configurations arg1) throws IOException
IOException
protected void readFrameworkProperties(Map<String,Object> arg0, Map<String,String> arg1) throws IOException
IOException
protected void readExtensions(Map<String,Object> arg0, List<String> arg1, org.apache.sling.feature.Extensions arg2, org.apache.sling.feature.Configurations arg3) throws IOException
IOException
protected void checkType(String arg0, Object arg1, Class<?>... arg2) throws IOException
IOException
protected org.apache.sling.feature.Prototype readPrototype(Map<String,Object> arg0) throws IOException
IOException
protected void readRequirements(Map<String,Object> arg0, List<org.apache.sling.feature.MatchingRequirement> arg1) throws IOException
IOException
protected void readCapabilities(Map<String,Object> arg0, List<org.osgi.resource.Capability> arg1) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.