Class BroadleafThymeleaf3MessageCreator
java.lang.Object
org.broadleafcommerce.common.email.service.message.MessageCreator
org.broadleafcommerce.presentation.thymeleaf3.email.BroadleafThymeleaf3MessageCreator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class BroadleafThymeleaf3MessageCreator
extends org.broadleafcommerce.common.email.service.message.MessageCreator
implements org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.thymeleaf.TemplateEngine -
Constructor Summary
ConstructorsConstructorDescriptionBroadleafThymeleaf3MessageCreator(org.thymeleaf.TemplateEngine templateEngine, org.springframework.mail.javamail.JavaMailSender mailSender) -
Method Summary
Modifier and TypeMethodDescriptionbuildMessageBody(org.broadleafcommerce.common.email.service.info.EmailInfo info, Map<String, Object> props) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.broadleafcommerce.common.email.service.message.MessageCreator
buildMimeMessagePreparator, getMailSender, sendMessage, setMailSender
-
Field Details
-
templateEngine
protected org.thymeleaf.TemplateEngine templateEngine -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
BroadleafThymeleaf3MessageCreator
public BroadleafThymeleaf3MessageCreator(org.thymeleaf.TemplateEngine templateEngine, org.springframework.mail.javamail.JavaMailSender mailSender)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
buildMessageBody
public String buildMessageBody(org.broadleafcommerce.common.email.service.info.EmailInfo info, Map<String, Object> props) - Specified by:
buildMessageBodyin classorg.broadleafcommerce.common.email.service.message.MessageCreator
-