Class FromDecorator

java.lang.Object
io.micronaut.email.FromDecorator
All Implemented Interfaces:
io.micronaut.core.order.Ordered, EmailDecorator

@Requires(beans=FromConfiguration.class) @Singleton public class FromDecorator extends Object implements EmailDecorator
Decorates an email by setting the from field if not specified with the value provided by FromConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • FromDecorator

      public FromDecorator(FromConfiguration fromConfiguration)
      Parameters:
      fromConfiguration - From configuration
  • Method Details

    • decorate

      public void decorate(@NonNull @NotNull Email.Builder emailBuilder)
      Description copied from interface: EmailDecorator
      Populates an email.
      Specified by:
      decorate in interface EmailDecorator
      Parameters:
      emailBuilder - Email Builder