@Configuration @ConditionalOnClass(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnBean(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnEnabledHealthIndicator(value="mail") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value=MailSenderAutoConfiguration.class) public class MailHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<MailHealthIndicator,JavaMailSenderImpl>
Constructor and Description |
---|
MailHealthIndicatorAutoConfiguration(ObjectProvider<Map<String,JavaMailSenderImpl>> mailSenders) |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
mailHealthIndicator() |
createHealthIndicator, createHealthIndicator
public MailHealthIndicatorAutoConfiguration(ObjectProvider<Map<String,JavaMailSenderImpl>> mailSenders)
@Bean @ConditionalOnMissingBean(name="mailHealthIndicator") public HealthIndicator mailHealthIndicator()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.