Package | Description |
---|---|
org.trimou.engine | |
org.trimou.engine.config |
Modifier and Type | Method and Description |
---|---|
MustacheEngineBuilder |
MustacheEngineBuilder.addGlobalData(String name,
Object value)
Adds a value (e.g.
|
MustacheEngineBuilder |
MustacheEngineBuilder.addMustacheListener(MustacheListener listener)
Adds a
Mustache listener. |
MustacheEngineBuilder |
MustacheEngineBuilder.addResolver(Resolver resolver)
Adds a value resolver.
|
MustacheEngineBuilder |
MustacheEngineBuilder.addTemplateLocator(TemplateLocator locator)
Adds a template locator.
|
MustacheEngineBuilder |
MustacheEngineBuilder.addValueConverter(ValueConverter converter)
Add a value converter.
|
static MustacheEngineBuilder |
MustacheEngineBuilder.newBuilder() |
MustacheEngineBuilder |
MustacheEngineBuilder.omitServiceLoaderConfigurationExtensions()
Don't use the ServiceLoader mechanism to load configuration extensions
(i.e. the default resolvers are not added automatically).
|
MustacheEngineBuilder |
MustacheEngineBuilder.registerCallback(MustacheEngineBuilder.EngineBuiltCallback callback)
Callback is useful to configure a component instantiated before the
engine is built.
|
MustacheEngineBuilder |
MustacheEngineBuilder.registerHelper(String name,
Helper helper)
Each helper must be registered with a unique name.
|
MustacheEngineBuilder |
MustacheEngineBuilder.registerHelper(String name,
Helper helper,
boolean overwrite)
Each helper must be registered with a unique name.
|
MustacheEngineBuilder |
MustacheEngineBuilder.registerHelpers(Map<String,Helper> helpers)
Each helper must be registered with a unique name.
|
MustacheEngineBuilder |
MustacheEngineBuilder.registerHelpers(Map<String,Helper> helpers,
boolean overwrite)
Each helper must be registered with a unique name.
|
MustacheEngineBuilder |
MustacheEngineBuilder.setComputingCacheFactory(ComputingCacheFactory cacheFactory)
Set the custom
ComputingCacheFactory . |
MustacheEngineBuilder |
MustacheEngineBuilder.setConfigurationExtensionClassLoader(ClassLoader configurationExtensionClassLoader)
Set the
ClassLoader used to load ConfigurationExtension s. |
MustacheEngineBuilder |
MustacheEngineBuilder.setExecutorService(ExecutorService executorService)
Set the
ExecutorService to be used for async tasks. |
MustacheEngineBuilder |
MustacheEngineBuilder.setIdentifierGenerator(IdentifierGenerator identifierGenerator)
Set the custom
IdentifierGenerator . |
MustacheEngineBuilder |
MustacheEngineBuilder.setKeySplitter(KeySplitter keySplitter) |
MustacheEngineBuilder |
MustacheEngineBuilder.setLiteralSupport(LiteralSupport literalSupport)
Set the custom
LiteralSupport . |
MustacheEngineBuilder |
MustacheEngineBuilder.setLocaleSupport(LocaleSupport localeSupport)
Sets a locale support instance.
|
MustacheEngineBuilder |
MustacheEngineBuilder.setMissingValueHandler(MissingValueHandler missingValueHandler) |
MustacheEngineBuilder |
MustacheEngineBuilder.setProperty(String key,
Object value)
Sets a configuration property.
|
<T extends ConfigurationKey> |
MustacheEngineBuilder.setProperty(T configurationKey,
Object value)
Sets a configuration property.
|
MustacheEngineBuilder |
MustacheEngineBuilder.setTextSupport(TextSupport textSupport)
Sets a text support instance.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
ConfigurationFactory.createConfiguration(MustacheEngineBuilder builder) |
Copyright © 2017. All rights reserved.