public abstract class JacksonConfiguration
extends org.apache.commons.configuration2.BaseHierarchicalConfiguration
implements org.apache.commons.configuration2.FileBasedConfiguration, org.apache.commons.configuration2.io.InputStreamSupport, org.apache.commons.configuration2.io.FileLocatorAware
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.configuration2.io.FileLocator |
locator
The
FileLocator that may specify where the source/destination file is. |
| Modifier | Constructor and Description |
|---|---|
protected |
JacksonConfiguration(com.fasterxml.jackson.core.JsonFactory factory)
Initializes a new instance of the
JacksonConfiguration class. |
protected |
JacksonConfiguration(com.fasterxml.jackson.core.JsonFactory factory,
org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
Initializes a new instance of the
JacksonConfiguration class. |
| Modifier and Type | Method and Description |
|---|---|
void |
initFileLocator(org.apache.commons.configuration2.io.FileLocator locator)
Sets the file locator to use for the next invocation of
read(InputStream) or write(Writer). |
void |
read(java.io.InputStream inputStream)
Reads the configuration.
|
void |
read(java.io.Reader reader)
Reads the configuration.
|
void |
write(java.io.Writer writer)
Writes the configuration.
|
childConfigurationsAt, childConfigurationsAt, cloneNodeModel, configurationAt, configurationAt, configurationsAt, configurationsAt, createSubConfigurationForTrackedNode, getNodeModel, getSubConfigurationNodeSelector, getSubConfigurationParentModel, immutableChildConfigurationsAt, immutableConfigurationAt, immutableConfigurationAt, immutableConfigurationsAt, initSubConfigurationForThisParent, interpolatedConfiguration, subnodeConfigurationChanged, subsetaddNodes, addNodesInternal, addPropertyDirect, addPropertyInternal, clearInternal, clearPropertyDirect, clearTree, clearTreeInternal, clone, containsKeyInternal, fetchNodeList, getExpressionEngine, getKeysInternal, getKeysInternal, getMaxIndex, getMaxIndexInternal, getModel, getPropertyInternal, getRootElementName, getRootElementNameInternal, isEmptyInternal, nodeDefined, nodeKey, resolveAddKey, resolveKey, resolveNodeKey, resolveUpdateKey, setExpressionEngine, setPropertyInternal, sizeInternal, toStringaddErrorLogListener, addProperty, append, beginRead, beginWrite, clear, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setSynchronizer, setThrowExceptionOnMissing, size, unlockaddEventListener, clearErrorListeners, clearEventListeners, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddProperty, clear, clearProperty, getInterpolator, installInterpolator, setInterpolator, setProperty, subsetcontainsKey, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getEnum, getEnum, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, immutableSubset, isEmpty, size@Nullable protected org.apache.commons.configuration2.io.FileLocator locator
FileLocator that may specify where the source/destination file is.
This is for use by derived classses, if necessary.
protected JacksonConfiguration(com.fasterxml.jackson.core.JsonFactory factory)
JacksonConfiguration class.factory - the Jackson factory to useprotected JacksonConfiguration(com.fasterxml.jackson.core.JsonFactory factory,
org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
JacksonConfiguration class.factory - the Jackson factory to useconfig - the configuration whose nodes to copy into this configurationpublic void read(java.io.InputStream inputStream)
throws org.apache.commons.configuration2.ex.ConfigurationException,
java.io.IOException
read in interface org.apache.commons.configuration2.io.InputStreamSupportinputStream - the input stream to read fromjava.io.IOException - if an I/O error occursorg.apache.commons.configuration2.ex.ConfigurationException - if a non-I/O related problem occurspublic void read(java.io.Reader reader)
throws org.apache.commons.configuration2.ex.ConfigurationException,
java.io.IOException
read in interface org.apache.commons.configuration2.io.FileBasedreader - the reader to read fromjava.io.IOException - if an I/O error occursorg.apache.commons.configuration2.ex.ConfigurationException - if a non-I/O related problem occurspublic void write(java.io.Writer writer)
throws org.apache.commons.configuration2.ex.ConfigurationException,
java.io.IOException
write in interface org.apache.commons.configuration2.io.FileBasedwriter - the writer to write tojava.io.IOException - if an I/O error occursorg.apache.commons.configuration2.ex.ConfigurationException - if a non-I/O related problem occurspublic void initFileLocator(@Nullable
org.apache.commons.configuration2.io.FileLocator locator)
read(InputStream) or write(Writer).initFileLocator in interface org.apache.commons.configuration2.io.FileLocatorAwarelocator - the file locator to use; or null