Class TenantAwareDataSourceHealthIndicatorConfig

java.lang.Object
com.sap.cds.framework.spring.actuator.TenantAwareDataSourceHealthIndicatorConfig

@AutoConfiguration(before=org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration.class, after={org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.class,CdsRuntimeBeanDefinitionRegistrar.class}) @ConditionalOnClass({org.springframework.boot.actuate.health.HealthIndicator.class,com.sap.cds.feature.mt.RoutingDataSourceFactory.class}) @ConditionalOnSingleCandidate(com.sap.cds.feature.mt.lib.runtime.TenantAwareDataSource.class) @Conditional(com.sap.cds.framework.spring.actuator.MtHealthCheckCondition.class) @ConditionalOnEnabledHealthIndicator("db") public class TenantAwareDataSourceHealthIndicatorConfig extends Object
Configuration which overrides the standard Spring DB health check, if a TenantAwareDataSource is present.
  • Constructor Details

    • TenantAwareDataSourceHealthIndicatorConfig

      public TenantAwareDataSourceHealthIndicatorConfig()
  • Method Details

    • dbHealthIndicatorTenantAware

      @Bean("dbHealthIndicator") public org.springframework.boot.actuate.health.HealthContributor dbHealthIndicatorTenantAware(TenantAwareDataSource dataSource, CdsRuntime runtime)