public class NacosXmlPropertySourceLoader extends AbstractPropertySourceLoader implements org.springframework.core.Ordered
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.| Constructor and Description |
|---|
NacosXmlPropertySourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.springframework.core.env.PropertySource<?>> |
doLoad(String name,
org.springframework.core.io.Resource resource)
Load the resource into one or more property sources.
|
String[] |
getFileExtensions()
Returns the file extensions that the loader supports (excluding the '.').
|
int |
getOrder()
Get the order value of this object.
|
canLoad, flattenedMap, loadpublic int getOrder()
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 in interface org.springframework.core.OrderedOrdered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCEpublic String[] getFileExtensions()
getFileExtensions in interface org.springframework.boot.env.PropertySourceLoaderprotected List<org.springframework.core.env.PropertySource<?>> doLoad(String name, org.springframework.core.io.Resource resource) throws IOException
doLoad in class AbstractPropertySourceLoadername - 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 loadIOException - if the source cannot be loadedCopyright © 2023 Pivotal Software, Inc.. All rights reserved.