Class JSONMetaData

java.lang.Object
org.apache.felix.dm.runtime.JSONMetaData
All Implemented Interfaces:
Cloneable, MetaData

public class JSONMetaData extends Object implements MetaData, Cloneable
This class represents the parsed data found from meta-inf dependencymanager descriptors.
Author:
Felix Project Team
  • Constructor Details

    • JSONMetaData

      public JSONMetaData(String input) throws Exception
      Decodes Json metadata for either a Service or a Dependency descriptor entry. The JSON object has the following form: entry ::= String | String[] | dictionary dictionary ::= key-value-pair* key-value-pair ::= key value value ::= String | String[] | value-type value-type ::= jsonObject with value-type-info value-type-info ::= "type"=primitive java type "value"=String|String[] Exemple: {"string-param" : "string-value", "string-array-param" : ["string1", "string2"], "properties" : { "string-param" : "string-value", "string-array-param" : ["str1", "str2], "long-param" : {"type":"java.lang.Long", "value":"1"}} "long-array-param" : {"type":"java.lang.Long", "value":["1"]}} } }
      Parameters:
      input - the JSON string that corresponds to a dependency manager descriptor entry line.
      Throws:
      Exception
  • Method Details