public abstract class AbstractJacksonConfigurationSource extends Object implements IterableConfigurationSource
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
File file)
Constructs value source from
File. |
protected |
AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
InputStream inputStream)
Constructs value source from
InputStream. |
protected |
AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Reader reader)
Constructs value source from
Reader. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ConfigurationEntry> |
getAllConfigurationEntries() |
OptionalValue<String> |
getValue(String key,
Map<String,String> attributes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindEntryprotected AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
InputStream inputStream)
InputStream.
Note: File content is loaded and processed in the constructor and inputStream is closed
at the end of processing.
objectMapper - configured object mapper.inputStream - input stream which provides JSON.UncheckedIOException - when IOException is thrown during processing.protected AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Reader reader)
Reader.
Note: File content is loaded and processed in the constructor and reader is closed
at the end of processing.
objectMapper - configured object mapper.reader - reader which provides JSON source.UncheckedIOException - when IOException is thrown during processing.protected AbstractJacksonConfigurationSource(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
File file)
File.objectMapper - configured object mapper.file - file which contains JSON source.IllegalArgumentException - when provided file not found.UncheckedIOException - when IOException is thrown during processing.public OptionalValue<String> getValue(String key, Map<String,String> attributes)
getValue in interface ConfigurationSourcepublic Iterable<ConfigurationEntry> getAllConfigurationEntries()
getAllConfigurationEntries in interface IterableConfigurationSourceCopyright © 2017–2018 Sabre GLBL Inc.. All rights reserved.