All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mstream.trader.commons.test.guice.FreemakerConfigProvider Maven / Gradle / Ivy

The newest version!
package io.mstream.trader.commons.test.guice;


import freemarker.template.Configuration;

import javax.inject.Provider;

import static java.lang.ClassLoader.getSystemClassLoader;

public class FreemakerConfigProvider implements Provider {

    @Override
    public Configuration get() {
        Configuration cfg = new Configuration(Configuration.VERSION_2_3_23);
        cfg.setClassLoaderForTemplateLoading(getSystemClassLoader(), "");
        return cfg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy