package com.homeadvisor.kafdrop.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


@Configuration
public class SchemaRegistryConfiguration {

    @Component
    @ConfigurationProperties(prefix = "schemaregistry")
    public static class SchemaRegistryProperties
    {
        private String connect;

        public String getConnect()
        {
            return connect;
        }

        public void setConnect(String connect)
        {
            this.connect = connect;
        }

    }

}

@@ -221,16 +221,107 @@
 onent;%0A%0A
+import java.util.List;%0Aimport java.util.regex.Pattern;%0Aimport java.util.stream.Collectors;%0A
 %0A@Config
@@ -494,24 +494,112 @@
 rties%0A    %7B%0A
+%0A        public static final Pattern CONNECT_SEPARATOR = Pattern.compile(%22%5C%5Cs*,%5C%5Cs*%22);%0A%0A
         priv
@@ -752,32 +752,32 @@
 nect)%0A        %7B%0A
-
             this
@@ -803,21 +803,291 @@
 %0A        %7D%0A%0A
+        public List%3CString%3E getConnectList()%0A        %7B%0A            return CONNECT_SEPARATOR.splitAsStream(this.connect)%0A                    .map(String::trim)%0A                    .filter(s -%3E s.length() %3E 0)%0A                    .collect(Collectors.toList());%0A        %7D%0A%0A
     %7D%0A%0A%7D%0A

Revert "Remove list-parsing code from schema registry config parser"