package org.polyfill.configurations;

import org.polyfill.components.Polyfill;
import org.polyfill.interfaces.ConfigLoaderService;
import org.polyfill.interfaces.PolyfillLoaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.Map;

/**
 * Created by reinier.guerra on 1/24/17.
 */
@Configuration
public class AppConfig {

    @Resource(name = "polyfillsDirPath")
    private String polyfillsDirPath;

    @Resource(name = "browserBaselinesPath")
    private String browserBaselinesPath;

    @Resource(name = "aliasesPath")
    private String aliasesPath;

    @Autowired
    private ConfigLoaderService configLoaderService;

    @Autowired
    private PolyfillLoaderService polyfillLoaderService;

    @Bean
    public Map<String, Object> aliases() throws IOException {
        return configLoaderService.getConfig(aliasesPath);
    }

    @Bean
    public Map<String, Object> browserBaselines() throws IOException {
        return configLoaderService.getConfig(browserBaselinesPath);
    }

    @Bean
    public Map<String, Polyfill> polyfills() throws IOException {
        return polyfillLoaderService.loadPolyfillsToMap(polyfillsDirPath);
    }
}

@@ -761,24 +761,107 @@
 iasesPath;%0A%0A
+    @Resource(name = %22browserAliasesPath%22)%0A    private String browserAliasesPath;%0A%0A
     @Autowir
@@ -1120,32 +1120,184 @@
 esPath);%0A    %7D%0A%0A
+    @Bean%0A    public Map%3CString, Object%3E browserAliases() throws IOException %7B%0A        return configLoaderService.getConfig(browserAliasesPath);%0A    %7D%0A%0A
     @Bean%0A    pu

Fix browserAliases loading (#79)