OghamCommonTemplateProperties.java
package fr.sii.ogham.spring.template;
import org.springframework.boot.context.properties.ConfigurationProperties;
import fr.sii.ogham.spring.common.PrefixSuffixProperties;
@ConfigurationProperties("ogham.template")
public class OghamCommonTemplateProperties extends PrefixSuffixProperties {
/**
* Globally enable/disable cache for templates independently of the template
* parser implementation and message type.<br /><br />
*
* For Thymeleaf template engine, the priority order for
* email is (from highest priority to lowest):<br /><br />
*
* - (1) `ogham.email.thymeleaf.cache`,<br />
* - (2) `ogham.email.template.cache`,<br />
* - (3) `ogham.template.cache`<br /><br /><br />
*
* For Thymeleaf template engine, the priority order for
* sms is (from highest priority to lowest):<br /><br />
*
* - (1) `ogham.sms.thymeleaf.cache`,<br />
* - (2) `ogham.sms.template.cache`,<br />
* - (3) `ogham.template.cache`<br />
*/
private Boolean cache;
public Boolean getCache() {
return cache;
}
public void setCache(Boolean enable) {
this.cache = enable;
}
}