Datasets:
apcl
/

Modalities:
Text
Formats:
webdataset
Libraries:
Datasets
WebDataset
mcmillco's picture
init
e789b06
raw
history blame
675 Bytes
TDAT: public ITemplateEngine getTemplateEngine(String type) throws Exception {
// Get template engine defined into the Spring config
ITemplateEngine templateEngine = (ITemplateEngine) applicationContext
.getBean(type);
// Test if template engine have configuration ID
String configurationId = templateEngine.getConfigurationId();
if (!StringUtils.isEmpty(configurationId)) {
// Template engine works with Configuration, get it
ITemplateConfiguration configuration = getTemplateConfiguration(configurationId);
templateEngine.setConfiguration(configuration);
}
return templateEngine;
}
COM: <s> return template engine of type code type code </s>