public List getList()

in archaius2-core/src/main/java/com/netflix/archaius/config/AbstractConfig.java [531:545]


    public <T> List<T> getList(String key, Class<T> type) {
        Object value = getRawProperty(key);
        if (value == null) {
            List<?> alternativeListCreation = createListForKey(key, type);
            if (!alternativeListCreation.isEmpty()) {
                return (List<T>) alternativeListCreation;
            }
        }
        if (value == null) {
            return notFound(key);
        }

        // TODO: handle the case where value is a collection
        return decoder.decode(ArchaiusType.forListOf(type), resolve(value.toString()));
    }