use of org.thymeleaf.engine.StandardModelFactory in project thymeleaf by thymeleaf.
the class EngineConfiguration method getModelFactory.
public IModelFactory getModelFactory(final TemplateMode templateMode) {
if (this.modelFactories.containsKey(templateMode)) {
return this.modelFactories.get(templateMode);
}
// TODO The classes to be instanced for creating model factories should be configurable
final IModelFactory modelFactory = new StandardModelFactory(this, templateMode);
this.modelFactories.putIfAbsent(templateMode, modelFactory);
return this.modelFactories.get(templateMode);
}
Aggregations