Class MailPropertiesProviderFactory

java.lang.Object
io.micronaut.email.javamail.sender.MailPropertiesProviderFactory

@Factory public class MailPropertiesProviderFactory extends Object
Builds a MailPropertiesProvider if the properties are set at JavaMailConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • 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