cn.aradin.spring.actuator.starter.configure.OnlineEndpointAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aradin-spring-actuator-starter Show documentation
Show all versions of aradin-spring-actuator-starter Show documentation
Actuator And Customized HealthCheck
The newest version!
package cn.aradin.spring.actuator.starter.configure;
import java.util.List;
import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import cn.aradin.spring.actuator.starter.AradinActuatorAutoConfiguration;
import cn.aradin.spring.actuator.starter.actuate.OnlineEndpoint;
import cn.aradin.spring.actuator.starter.extension.IOnlineHandler;
import cn.aradin.spring.actuator.starter.properties.ActuatorOnlineProperties;
@Configuration(proxyBeanMethods = false)
@ConditionalOnAvailableEndpoint(endpoint = OnlineEndpoint.class)
@AutoConfigureAfter(AradinActuatorAutoConfiguration.class)
public class OnlineEndpointAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public OnlineEndpoint onlineEndpoint(ActuatorOnlineProperties actuatorOnlineProperties, List onlineHandlers) {
return new OnlineEndpoint(actuatorOnlineProperties, onlineHandlers);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy