Package org.jdbi.v3.freemarker
Class FreemarkerSqlLocator
- java.lang.Object
-
- org.jdbi.v3.freemarker.FreemarkerSqlLocator
-
public class FreemarkerSqlLocator extends java.lang.ObjectLocates SQL in.sql.ftlFreemarker files on the classpath.
-
-
Field Summary
Fields Modifier and Type Field Description private FreemarkerConfigconfigprivate static freemarker.template.ConfigurationCONFIGURATIONDeprecated.don't use static scope
-
Constructor Summary
Constructors Constructor Description FreemarkerSqlLocator(FreemarkerConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static freemarker.template.TemplatefindTemplate(freemarker.template.Configuration config, java.lang.Class<?> type, java.lang.String templateName)static freemarker.template.TemplatefindTemplate(java.lang.Class<?> type, java.lang.String templateName)Deprecated.this static method does not respect configuration, useFreemarkerConfig.createLocator()freemarker.template.Templatelocate(java.lang.Class<?> type, java.lang.String templateName)private static java.lang.ClassLoaderselectClassLoader()
-
-
-
Field Detail
-
CONFIGURATION
@Deprecated private static final freemarker.template.Configuration CONFIGURATION
Deprecated.don't use static scope
-
config
private final FreemarkerConfig config
-
-
Constructor Detail
-
FreemarkerSqlLocator
FreemarkerSqlLocator(FreemarkerConfig config)
-
-
Method Detail
-
selectClassLoader
private static java.lang.ClassLoader selectClassLoader()
-
findTemplate
@Deprecated public static freemarker.template.Template findTemplate(java.lang.Class<?> type, java.lang.String templateName)Deprecated.this static method does not respect configuration, useFreemarkerConfig.createLocator()
-
findTemplate
public static freemarker.template.Template findTemplate(freemarker.template.Configuration config, java.lang.Class<?> type, java.lang.String templateName)
-
locate
public freemarker.template.Template locate(java.lang.Class<?> type, java.lang.String templateName)
-
-