Class MailPropertiesProviderFactory
java.lang.Object
io.micronaut.email.javamail.sender.MailPropertiesProviderFactory
Builds a
MailPropertiesProvider
if the properties are set at JavaMailConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull MailPropertiesProvider
buildMailPropertiesProvider
(JavaMailConfiguration javaMailConfiguration)
-
Constructor Details
-
MailPropertiesProviderFactory
public MailPropertiesProviderFactory()
-
-
Method Details
-
buildMailPropertiesProvider
@Singleton @NonNull public @NonNull MailPropertiesProvider buildMailPropertiesProvider(JavaMailConfiguration javaMailConfiguration) - Parameters:
javaMailConfiguration
- JavaMail Configuration- Returns:
- A MailPropertiesProvider
- Throws:
io.micronaut.context.exceptions.DisabledBeanException
- if JavaMail configuration does not contain any properties
-