Class FreemarkerDisplayEvaluator
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.displayfactory.FreemarkerDisplayEvaluator
- All Implemented Interfaces:
DisplayEvaluator
-
Constructor Summary
ConstructorsConstructorDescriptionFreemarkerDisplayEvaluator(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:
getLanguagein interfaceDisplayEvaluator
-
evaluate
public String evaluate(String expression, EntityReference entity, DefaultDisplay.Options options) throws DisplayFactoryException Description copied from interface:DisplayEvaluatorEvaluate an expression against an entity.- Specified by:
evaluatein interfaceDisplayEvaluator- Parameters:
expression- the expressionentity- the entity- Returns:
- the evaluated string
- Throws:
DisplayFactoryException
-