public class JsonPropertySourceLoader extends AbstractPropertySourceLoader
A PropertySourceLoader that reads application.json files if they exist.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION
File extension for property source loader.
|
DEFAULT_POSITIONHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
JsonPropertySourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getExtensions() |
protected void |
processInput(java.lang.String name,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.Object> finalMap) |
protected java.util.Map<java.lang.String,java.lang.Object> |
readJsonAsMap(java.io.InputStream input) |
createPropertySource, getOrder, load, loadEnv, processMap, read, readInputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadisEnabledreadpublic static final java.lang.String FILE_EXTENSION
public java.util.Set<java.lang.String> getExtensions()
protected void processInput(java.lang.String name,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.Object> finalMap)
throws java.io.IOException
processInput in class AbstractPropertySourceLoadername - The nameinput - The input streamfinalMap - The map with all the properties processedjava.io.IOException - If the input stream doesn't existprotected java.util.Map<java.lang.String,java.lang.Object> readJsonAsMap(java.io.InputStream input)
throws java.io.IOException
input - The input streamjava.io.IOException - If the input stream doesn't exist