io.mstream.trader.commons.test.guice.FreemakerConfigProvider Maven / Gradle / Ivy
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;
}
}