public static class PebbleModule.Builder extends Object
PebbleModule instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
com.mitchellbosecke.pebble.PebbleEngine.Builder |
build(Environment env)
Creates a PebbleEngine instance.
|
PebbleModule.Builder |
setDefaultLocale(Locale defaultLocale)
Set default locale.
|
PebbleModule.Builder |
setExecutorService(ExecutorService executorService)
set ExecutorService.
|
PebbleModule.Builder |
setTagCache(com.mitchellbosecke.pebble.cache.PebbleCache<com.mitchellbosecke.pebble.cache.CacheKey,Object> tagCache)
Set tab cache.
|
PebbleModule.Builder |
setTemplateCache(com.mitchellbosecke.pebble.cache.PebbleCache<Object,com.mitchellbosecke.pebble.template.PebbleTemplate> cache)
Set template cache.
|
PebbleModule.Builder |
setTemplateLoader(com.mitchellbosecke.pebble.loader.Loader<?> loader)
Template loader to use.
|
PebbleModule.Builder |
setTemplatesPath(String templatesPath)
Template path.
|
@Nonnull public PebbleModule.Builder setTemplateCache(@Nonnull com.mitchellbosecke.pebble.cache.PebbleCache<Object,com.mitchellbosecke.pebble.template.PebbleTemplate> cache)
cache - Template cache.@Nonnull public PebbleModule.Builder setTagCache(@Nonnull com.mitchellbosecke.pebble.cache.PebbleCache<com.mitchellbosecke.pebble.cache.CacheKey,Object> tagCache)
tagCache - Tag cache.@Nonnull public PebbleModule.Builder setTemplatesPath(@Nonnull String templatesPath)
templatesPath - Set template path.@Nonnull public PebbleModule.Builder setExecutorService(@Nonnull ExecutorService executorService)
executorService - Set ExecutorService.@Nonnull public PebbleModule.Builder setDefaultLocale(@Nonnull Locale defaultLocale)
defaultLocale - Locale.@Nonnull public PebbleModule.Builder setTemplateLoader(@Nonnull com.mitchellbosecke.pebble.loader.Loader<?> loader)
loader - Template loader to use.@Nonnull public com.mitchellbosecke.pebble.PebbleEngine.Builder build(@Nonnull Environment env)
env - Application environment.Copyright © 2020. All rights reserved.