类 NacosXmlPropertySourceLoader

java.lang.Object
com.alibaba.cloud.nacos.parser.AbstractPropertySourceLoader
com.alibaba.cloud.nacos.parser.NacosXmlPropertySourceLoader
所有已实现的接口:
org.springframework.boot.env.PropertySourceLoader, org.springframework.core.Ordered

public class NacosXmlPropertySourceLoader extends AbstractPropertySourceLoader implements org.springframework.core.Ordered
Parsing for XML requires overwriting the default PropertiesPropertySourceLoader, because it internally rigorously validates (DOCTYPE) THE XML in a way that makes it difficult to customize the configuration; at finally, make sure it's in the first place.
作者:
zkz
  • 构造器详细资料

    • NacosXmlPropertySourceLoader

      public NacosXmlPropertySourceLoader()
  • 方法详细资料

    • getOrder

      public int getOrder()
      Get the order value of this object.

      Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startup values).

      Same order values will result in arbitrary sort positions for the affected objects.

      指定者:
      getOrder 在接口中 org.springframework.core.Ordered
      返回:
      the order value
      另请参阅:
      • Ordered.HIGHEST_PRECEDENCE
      • Ordered.LOWEST_PRECEDENCE
    • getFileExtensions

      public String[] getFileExtensions()
      Returns the file extensions that the loader supports (excluding the '.').
      指定者:
      getFileExtensions 在接口中 org.springframework.boot.env.PropertySourceLoader
      返回:
      the file extensions
    • doLoad

      protected List<org.springframework.core.env.PropertySource<?>> doLoad(String name, org.springframework.core.io.Resource resource) throws IOException
      Load the resource into one or more property sources. Implementations may either return a list containing a single source, or in the case of a multi-document format such as yaml a source for each document in the resource.
      指定者:
      doLoad 在类中 AbstractPropertySourceLoader
      参数:
      name - the root name of the property source. If multiple documents are loaded an additional suffix should be added to the name for each source loaded.
      resource - the resource to load
      返回:
      a list property sources
      抛出:
      IOException - if the source cannot be loaded