Interface EmailDecorator

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Subinterfaces:
TemplateBodyDecorator
All Known Implementing Classes:
DefaultTemplateBodyDecorator, FromDecorator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EmailDecorator extends io.micronaut.core.order.Ordered
Decorates every Email send by an EmailSender or an AsyncEmailSender. For example, you can use a decorator to add a bcc recipient to every email you send.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(Email.Builder emailBuilder)
    Populates an email.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • decorate

      void decorate(@NonNull @NotNull Email.Builder emailBuilder)
      Populates an email.
      Parameters:
      emailBuilder - Email Builder