@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnBean(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnEnabledHealthIndicator(value="mail") @AutoConfigureAfter(value=MailSenderAutoConfiguration.class) public class MailHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<MailHealthIndicator,org.springframework.mail.javamail.JavaMailSenderImpl>
Constructor and Description |
---|
MailHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthContributor |
mailHealthContributor(Map<String,org.springframework.mail.javamail.JavaMailSenderImpl> mailSenders) |
createComposite
createContributor, createIndicator
public MailHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name={"mailHealthIndicator","mailHealthContributor"}) public HealthContributor mailHealthContributor(Map<String,org.springframework.mail.javamail.JavaMailSenderImpl> mailSenders)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.