Search in sources :

Example 1 with StandardModelFactory

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);
}
Also used : StandardModelFactory(org.thymeleaf.engine.StandardModelFactory) IModelFactory(org.thymeleaf.model.IModelFactory)

Aggregations

StandardModelFactory (org.thymeleaf.engine.StandardModelFactory)1 IModelFactory (org.thymeleaf.model.IModelFactory)1