Class MailHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<HealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<MailHealthIndicator,JavaMailSenderImpl>
org.springframework.boot.actuate.autoconfigure.mail.MailHealthContributorAutoConfiguration
@AutoConfiguration(after=MailSenderAutoConfiguration.class)
@ConditionalOnClass(org.springframework.mail.javamail.JavaMailSenderImpl.class)
@ConditionalOnBean(org.springframework.mail.javamail.JavaMailSenderImpl.class)
@ConditionalOnEnabledHealthIndicator("mail")
public class MailHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<MailHealthIndicator,JavaMailSenderImpl>
- Since:
- 2.0.0
- Author:
- Johannes Edmeier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmailHealthContributor
(Map<String, JavaMailSenderImpl> mailSenders) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration
createComposite
Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
MailHealthContributorAutoConfiguration
public MailHealthContributorAutoConfiguration()
-
-
Method Details
-
mailHealthContributor
@Bean @ConditionalOnMissingBean(name={"mailHealthIndicator","mailHealthContributor"}) public HealthContributor mailHealthContributor(Map<String, JavaMailSenderImpl> mailSenders)
-