Skip to main content

Nacos

Config

Bootstrap

org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration

  • org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration#initialize
  • org.springframework.cloud.bootstrap.config.PropertySourceLocator#locateCollection(Environment)

Locator

com.alibaba.cloud.nacos.client.NacosPropertySourceLocator

  • com.alibaba.nacos.client.config.NacosConfigService
    • com.alibaba.nacos.client.config.NacosConfigService#getConfigInner
      1. com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor#getFailover
      2. com.alibaba.nacos.client.config.impl.ClientWorker#getServerConfig
      3. com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor#getSnapshot
  • com.alibaba.nacos.client.config.impl.ClientWorker
  • com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder

Refresh

com.alibaba.nacos.client.config.impl.ClientWorker.ConfigRpcTransportClient

  • com.alibaba.nacos.client.config.impl.ClientWorker.ConfigRpcTransportClient#executeConfigListen

com.alibaba.cloud.nacos.refresh.NacosContextRefresher

  • com.alibaba.cloud.nacos.refresh.NacosContextRefresher#registerNacosListener
  • org.springframework.cloud.endpoint.event.RefreshEvent
    • org.springframework.cloud.context.refresh.ContextRefresher#refresh
      • org.springframework.cloud.context.refresh.ContextRefresher#refreshEnvironment
        • org.springframework.cloud.context.refresh.ContextRefresher#updateEnvironment
        • org.springframework.context.ApplicationEventPublisher#publishEvent(EnvironmentChangeEvent)
      • org.springframework.cloud.context.scope.refresh.RefreshScope#refreshAll
  • org.springframework.cloud.context.environment.EnvironmentChangeEvent
    • org.springframework.cloud.logging.LoggingRebinder#onApplicationEvent
    • org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder#onApplicationEvent
  • org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent

Registry