com.ersione.springframework.boot.server.admin.notifier.JandiNotificationConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-admin-jandi-notifier Show documentation
Show all versions of spring-boot-admin-jandi-notifier Show documentation
Spring boot admin notifier for Jandi
package com.ersione.springframework.boot.server.admin.notifier;
import de.codecentric.boot.admin.server.config.AdminServerNotifierAutoConfiguration;
import de.codecentric.boot.admin.server.domain.entities.InstanceRepository;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@AutoConfigureBefore({AdminServerNotifierAutoConfiguration.NotifierTriggerConfiguration.class, AdminServerNotifierAutoConfiguration.CompositeNotifierConfiguration.class})
@ConditionalOnProperty(prefix = "spring.boot.admin.notify.jandi", name = "webhook-url")
public class JandiNotificationConfiguration {
@Bean
@ConfigurationProperties("spring.boot.admin.notify.jandi")
public JandiNotifier jandiNotifier(InstanceRepository repository) {
return new JandiNotifier(repository);
}
}