Class ConfigReloadAutoConfiguration.ConfigReloadAutoConfigurationBeans

java.lang.Object
org.springframework.cloud.kubernetes.fabric8.config.reload.ConfigReloadAutoConfiguration.ConfigReloadAutoConfigurationBeans
Enclosing class:
ConfigReloadAutoConfiguration

@ConditionalOnProperty("spring.cloud.kubernetes.reload.enabled") @ConditionalOnClass({org.springframework.cloud.context.restart.RestartEndpoint.class,org.springframework.cloud.context.refresh.ContextRefresher.class}) protected static class ConfigReloadAutoConfiguration.ConfigReloadAutoConfigurationBeans extends Object
Configuration reload must be enabled explicitly.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    configMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator)
    Event Based configMap ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    configMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskSchedulerWrapper)
    Polling configMap ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy
    configurationUpdateStrategy(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx, org.springframework.cloud.context.restart.RestartEndpoint restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher)
     
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    secretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator)
    Event Based secrets ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    secretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler)
    Polling secrets ConfigurationChangeDetector.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigReloadAutoConfigurationBeans

      protected ConfigReloadAutoConfigurationBeans()
  • Method Details

    • configMapPropertyChangePollingWatcher

      @Bean @ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskSchedulerWrapper)
      Polling configMap ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      fabric8ConfigMapPropertySourceLocator - configMap property source locator
      Returns:
      a bean that listen to configuration changes and fire a reload.
    • secretsPropertyChangePollingWatcher

      @Bean @ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler)
      Polling secrets ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      fabric8SecretsPropertySourceLocator - secrets property source locator
      Returns:
      a bean that listen to configuration changes and fire a reload.
    • configMapPropertyChangeEventWatcher

      @Bean @ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator)
      Event Based configMap ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      fabric8ConfigMapPropertySourceLocator - configMap property source locator
      Returns:
      a bean that listen to configMap change events and fire a reload.
    • secretsPropertyChangeEventWatcher

      @Bean @ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator)
      Event Based secrets ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      fabric8SecretsPropertySourceLocator - secrets property source locator
      Returns:
      a bean that listen to secrets change events and fire a reload.
    • configurationUpdateStrategy

      @Bean @ConditionalOnMissingBean public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy configurationUpdateStrategy(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx, @Autowired(required=false) org.springframework.cloud.context.restart.RestartEndpoint restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher)
      Parameters:
      properties - config reload properties
      ctx - application context
      restarter - restart endpoint
      refresher - context refresher
      Returns:
      provides the action to execute when the configuration changes.