Class FreemarkerDisplayEvaluator
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.displayfactory.FreemarkerDisplayEvaluator
- All Implemented Interfaces:
DisplayEvaluator
-
Constructor Summary
ConstructorDescriptionFreemarkerDisplayEvaluator
(TemplateEngineFactory templateEngineFactory, L10N l10N, TimezoneResolverService timezoneResolver) -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(String expression, EntityReference entity, DefaultDisplay.Options options) Evaluate an expression against an entity.
-
Constructor Details
-
FreemarkerDisplayEvaluator
public FreemarkerDisplayEvaluator(TemplateEngineFactory templateEngineFactory, L10N l10N, TimezoneResolverService timezoneResolver)
-
-
Method Details
-
getLanguage
- Specified by:
getLanguage
in interfaceDisplayEvaluator
-
evaluate
public String evaluate(String expression, EntityReference entity, DefaultDisplay.Options options) throws DisplayFactoryException Description copied from interface:DisplayEvaluator
Evaluate an expression against an entity.- Specified by:
evaluate
in interfaceDisplayEvaluator
- Parameters:
expression
- the expressionentity
- the entity- Returns:
- the evaluated string
- Throws:
DisplayFactoryException
-