collector

fun collector(daVinci: DaVinci, array: JsonArray): List<Collector<*>>

Creates a list of Collector instances from a JsonArray. Each JsonObject in the array should have a "type" field that matches a registered Collector type.

Return

A list of Collector instances.

Parameters

daVinci

The DaVinci instance to be injected.

array

The JsonArray to create the Collectors from.