public abstract class AbstractDefaultThymeleafEmailConfigurer extends Object implements MessagingConfigurer
MessagingBuilder
instance is created through
MessagingBuilder.standard()
or MessagingBuilder.minimal()
.
The configurer has a priority of 90000 in order to be applied after global configurer but before any sender implementation.
This configurer is applied only iforg.thymeleaf.TemplateEngine
is
present in the classpath. If not present, template engine is not registered
at all.
This configurer inherits environment configuration (see
EnvironmentBuilder
)
It also copies resource resolution configuration of
DefaultMessagingConfigurer
to inherit resource resolution lookups
(see ResourceResolutionBuilder
).
This configurer applies the following configuration:
Constructor and Description |
---|
AbstractDefaultThymeleafEmailConfigurer(org.slf4j.Logger log) |
AbstractDefaultThymeleafEmailConfigurer(org.slf4j.Logger log,
MessagingConfigurerAdapter delegate) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canUseThymeleaf() |
void |
configure(MessagingBuilder msgBuilder)
Apply configuration on the provided builder
|
protected abstract Class<? extends AbstractThymeleafMultiContentBuilder<?,?,?>> |
getBuilderClass() |
public AbstractDefaultThymeleafEmailConfigurer(org.slf4j.Logger log)
public AbstractDefaultThymeleafEmailConfigurer(org.slf4j.Logger log, MessagingConfigurerAdapter delegate)
public void configure(MessagingBuilder msgBuilder)
Configurer
configure
in interface Configurer<MessagingBuilder>
msgBuilder
- the builder to configureprotected abstract Class<? extends AbstractThymeleafMultiContentBuilder<?,?,?>> getBuilderClass()
protected abstract boolean canUseThymeleaf()
Copyright © 2021. All rights reserved.