Package io.micronaut.email
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
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
FromDecorator
- Parameters:
fromConfiguration
- From configuration
-
-
Method Details
-
decorate
Description copied from interface:EmailDecorator
Populates an email.- Specified by:
decorate
in interfaceEmailDecorator
- Parameters:
emailBuilder
- Email Builder
-