parseList

inline fun <T> LayeredPropertyMap.parseList(itemKeyPrefix: String): List<T>

Function for reading and parsing the String values stored in the values to an actual list of objects.

Return

A parsed list of elements for given type.

Parameters

itemKeyPrefix

The key prefix we are looking for in the store.

Throws

if the T is not supported or the itemKeyPrefix is blank string.

ValueNotFoundException

if one of the list values is null.

as the result of the conversion is cached, it'll be thrown if the second time around the T is different from it was called for the first time.

Here is an example how a list will look like (the itemKeyPrefix have to be "corda.endpoints" or "corda.endpoints."): corda.endpoints.1.url = localhost corda.endpoints.1.protocolVersion = 1 corda.endpoints.2.url = localhost corda.endpoints.2.protocolVersion = 1 corda.endpoints.3.url = localhost corda.endpoints.3.protocolVersion = 1