Package org.grouplens.lenskit.config

Examples of org.grouplens.lenskit.config.ConfigurationLoader


            String name = attr.getKey();
            if (!name.equals("name") && !name.equals("preload")) {
                setAttribute(name, attr.getValue());
            }
        }
        ConfigurationLoader loader = new ConfigurationLoader(getProject().getClassLoader());
        LenskitConfigScript script = loader.loadScript(file);
        script.configure(getConfig());
        return this;
    }
View Full Code Here


public class AlgorithmInstanceBuilderDelegate extends LenskitConfigDSL {
    private AlgorithmInstanceBuilder builder;

    public AlgorithmInstanceBuilderDelegate(AlgorithmInstanceBuilder builder) {
        // FIXME Use the correct classpath
        super(new ConfigurationLoader(), builder.getConfig());
        this.builder = builder;
    }
View Full Code Here

    public List<LenskitConfiguration> loadConfigurations(List<File> files) throws IOException, RecommenderConfigurationException {
        if (files == null || files.isEmpty()) {
            return Collections.emptyList();
        }

        ConfigurationLoader loader = new ConfigurationLoader(getClassLoader());
        // FIXME Make properties available

        List<LenskitConfiguration> configs = Lists.newArrayListWithCapacity(files.size());
        for (File file: files) {
            configs.add(loader.load(file));
        }

        return configs;
    }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.config.ConfigurationLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.