This class can parse a json file containing a list of objects to be created and their wiring. Then it can populate a Catalog
with that objects. The syntax of the json file should be similar to:
{
"wallaroo":
{
"plugins":
{
"shared": "pluginName"
},
"parts":
[
{
"name": "instance1",
"class": "className1"
},
{
"name": "instance2",
"class": "className2",
"attribute":
{
"name": "attr1_name",
"value": "attr1_string_value"
},
"attribute":
{
"name": "attr2_name",
"value": attr2_value
}
},
{
"name": "instance3",
"class": "className3",
"parameter1":
{
"type": "string",
"value": "mystring"
},
"parameter2":
{
"type": "int",
"value": 34
}
}
],
"wiring":
[
{
"source": "sourceInstance",
"dest": "targetInstance",
"collaborator": "collaboratorName"
},
{
"source": "sourceInstance2",
"dest": "targetInstance2",
"collaborator": "collaboratorName2"
}
]
}
}