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

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
    protected org.thymeleaf.TemplateEngine
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BroadleafThymeleaf3MessageCreator(org.thymeleaf.TemplateEngine templateEngine, org.springframework.mail.javamail.JavaMailSender mailSender)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buildMessageBody(org.broadleafcommerce.common.email.service.info.EmailInfo info, Map<String,Object> props)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class org.broadleafcommerce.common.email.service.message.MessageCreator

    buildMimeMessagePreparator, getMailSender, sendMessage, setMailSender

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      setApplicationContext in interface org.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:
      buildMessageBody in class org.broadleafcommerce.common.email.service.message.MessageCreator