类 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
-
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
从类继承的方法 com.alibaba.cloud.nacos.parser.AbstractPropertySourceLoader
canLoad, flattenedMap, load
-
构造器详细资料
-
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-startupvalues).Same order values will result in arbitrary sort positions for the affected objects.
- 指定者:
getOrder在接口中org.springframework.core.Ordered- 返回:
- the order value
- 另请参阅:
-
Ordered.HIGHEST_PRECEDENCEOrdered.LOWEST_PRECEDENCE
-
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
-