Class NacosPropertySourceLocator

java.lang.Object
com.alibaba.cloud.nacos.client.NacosPropertySourceLocator
All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator

@Order(0) public class NacosPropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
Author:
xiaojing, pbting
  • Constructor Summary

    Constructors
    Constructor
    Description
    NacosPropertySourceLocator(com.alibaba.cloud.nacos.NacosConfigManager nacosConfigManager)
     
    NacosPropertySourceLocator(com.alibaba.cloud.nacos.NacosConfigProperties nacosConfigProperties)
    Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.core.env.PropertySource<?>
    locate(org.springframework.core.env.Environment env)
     
    void
    setNacosConfigManager(com.alibaba.cloud.nacos.NacosConfigManager nacosConfigManager)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.cloud.bootstrap.config.PropertySourceLocator

    locateCollection
  • Constructor Details

    • NacosPropertySourceLocator

      @Deprecated public NacosPropertySourceLocator(com.alibaba.cloud.nacos.NacosConfigProperties nacosConfigProperties)
      Deprecated.
      Parameters:
      nacosConfigProperties - nacosConfigProperties
    • NacosPropertySourceLocator

      public NacosPropertySourceLocator(com.alibaba.cloud.nacos.NacosConfigManager nacosConfigManager)
  • Method Details

    • locate

      public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment env)
      Specified by:
      locate in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
    • setNacosConfigManager

      public void setNacosConfigManager(com.alibaba.cloud.nacos.NacosConfigManager nacosConfigManager)