public enum EngineConfigurationKey extends java.lang.Enum<EngineConfigurationKey> implements ConfigurationKey
| Enum Constant and Description |
|---|
CACHE_SECTION_LITERAL_BLOCK
true in case of the section-based literal blocks should be
cached (useful to optimize some lambdas processing scenarios, but memory
intensive), false otherwise. |
DEBUG_MODE
true in case of debug mode should be enabled,
false otherwise. |
DEFAULT_FILE_ENCODING
The encoding every template locator should use if reading template from a
file.
|
END_DELIMITER
The default end delimiter (e.g.
|
NO_VALUE_INDICATES_PROBLEM
true if lookup miss should result in exception,
false otherwise. |
PRECOMPILE_ALL_TEMPLATES
true if precompilation of all available templates is
required, false otherwise. |
REMOVE_STANDALONE_LINES
true if standalone lines should be removed (see also
Mustache spec), false otherwise. |
REMOVE_UNNECESSARY_SEGMENTS
true if unnecessary segments should be removed (e.g. |
SKIP_VALUE_ESCAPING
If
true interpolated values are never escaped, i.e. |
START_DELIMITER
The default start delimiter (e.g.
|
TEMPLATE_CACHE_ENABLED
If
true the template cache is enabled. |
TEMPLATE_CACHE_EXPIRATION_TIMEOUT
The template cache expiration timeout in seconds.
|
TEMPLATE_RECURSIVE_INVOCATION_LIMIT
The limit of recursive template invocation; 0 - recursive invocation is
forbidden.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get() |
java.lang.Object |
getDefaultValue()
The set of supported value types which can be automatically converted
consist of
String, Boolean, Integer and
Long. |
static EngineConfigurationKey |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EngineConfigurationKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EngineConfigurationKey START_DELIMITER
{{).public static final EngineConfigurationKey END_DELIMITER
}}).public static final EngineConfigurationKey PRECOMPILE_ALL_TEMPLATES
true if precompilation of all available templates is
required, false otherwise.public static final EngineConfigurationKey REMOVE_STANDALONE_LINES
true if standalone lines should be removed (see also
Mustache spec), false otherwise.public static final EngineConfigurationKey REMOVE_UNNECESSARY_SEGMENTS
true if unnecessary segments should be removed (e.g.
comments), false otherwise.public static final EngineConfigurationKey NO_VALUE_INDICATES_PROBLEM
true if lookup miss should result in exception,
false otherwise.public static final EngineConfigurationKey DEBUG_MODE
true in case of debug mode should be enabled,
false otherwise. Debug mode disables the template cache and
provides some more logging during template rendering.public static final EngineConfigurationKey CACHE_SECTION_LITERAL_BLOCK
true in case of the section-based literal blocks should be
cached (useful to optimize some lambdas processing scenarios, but memory
intensive), false otherwise.public static final EngineConfigurationKey TEMPLATE_RECURSIVE_INVOCATION_LIMIT
public static final EngineConfigurationKey SKIP_VALUE_ESCAPING
true interpolated values are never escaped, i.e.
org.trimou.engine.text.TextSupport.escapeHtml(String) is never called.public static final EngineConfigurationKey DEFAULT_FILE_ENCODING
public static final EngineConfigurationKey TEMPLATE_CACHE_ENABLED
true the template cache is enabled.public static final EngineConfigurationKey TEMPLATE_CACHE_EXPIRATION_TIMEOUT
CacheBuilder.expireAfterWrite(long,
java.util.concurrent.TimeUnit)public static EngineConfigurationKey[] values()
for (EngineConfigurationKey c : EngineConfigurationKey.values()) System.out.println(c);
public static EngineConfigurationKey valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String get()
get in interface ConfigurationKeypublic java.lang.Object getDefaultValue()
ConfigurationKeyString, Boolean, Integer and
Long.getDefaultValue in interface ConfigurationKeyCopyright © 2013. All Rights Reserved.