Class DefaultTemplateBodyDecorator

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

@Requires(beans=io.micronaut.views.ViewsRendererLocator.class) @Singleton public class DefaultTemplateBodyDecorator extends Object implements TemplateBodyDecorator
DefaultImplementation of TemplateBodyDecorator.
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • DefaultTemplateBodyDecorator

      public DefaultTemplateBodyDecorator(io.micronaut.views.ViewsRendererLocator viewsRendererLocator)
      Parameters:
      viewsRendererLocator - ViewRendererLocator
  • Method Details

    • getLogger

      public org.slf4j.Logger getLogger()
      Specified by:
      getLogger in interface TemplateBodyDecorator
    • resolveViewsRenderer

      @NonNull public @NonNull Optional<io.micronaut.views.ViewsRenderer> resolveViewsRenderer(@NonNull @NonNull BodyType bodyType, @NonNull @NonNull String viewName, @Nullable @Nullable Object data)
      Specified by:
      resolveViewsRenderer in interface TemplateBodyDecorator
      Parameters:
      bodyType - Emails Body type
      viewName - template view name
      data - Template Model
      Returns:
      The view rendered to be used