public static Map getApplicationProperties()

in src/main/java/com/amazonaws/services/kinesisanalytics/runtime/KinesisAnalyticsRuntime.java [57:74]


    public static Map<String, Properties> getApplicationProperties(String filename) throws IOException {
        Map<String, Properties> appProperties = new HashMap<>();
        ObjectMapper mapper = new ObjectMapper();

        try {
            JsonNode root = mapper.readTree(new FileInputStream(filename));
            for (JsonNode elem : root) {
                PropertyGroup propertyGroup = mapper.treeToValue(elem, PropertyGroup.class);
                Properties properties = new Properties();

                properties.putAll(propertyGroup.properties);
                appProperties.put(propertyGroup.groupID, properties);
            }
        } catch (FileNotFoundException ignored) {
            // swallow file not found and return empty runtime properties
        }
        return appProperties;
    }