S - a type of data stamppublic abstract class AbstractParsableConfigSource<S> extends AbstractConfigSource<S>
ConfigSource that uses a
ConfigParser to parse
configuration content accessible as a
Readable.
Typically concrete implementations will extend this class in order to
delegate to ConfigParser the loading of configuration content into an
ConfigNode.ObjectNode representing the hierarchical structure of the configuration.
AbstractParsableConfigSource.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractParsableConfigSource.Builder<B extends AbstractParsableConfigSource.Builder<B,T>,T>
Common
AbstractParsableConfigSource Builder, suitable for
concrete implementations of Builder that are related to
ConfigSources which extend AbstractParsableConfigSource |
AbstractSource.Data<D,S>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractParsableConfigSource(AbstractParsableConfigSource.Builder builder)
Initializes config source from builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ConfigParser.Content<S> |
content()
Returns config source content.
|
protected AbstractSource.Data<ConfigNode.ObjectNode,S> |
loadData()
Loads new data from config source.
|
protected String |
mediaType()
Returns source associated media type or
null if unknown. |
protected ConfigParser |
parser()
Returns source associated parser or
null if unknown. |
changes, configContext, init, processLoadedDatadataStamp, description, fireChangeEvent, isMandatory, load, uidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getclose, description, loadprotected AbstractParsableConfigSource(AbstractParsableConfigSource.Builder builder)
builder - builder to be initialized fromprotected AbstractSource.Data<ConfigNode.ObjectNode,S> loadData()
AbstractSourceloadData in class AbstractSource<ConfigNode.ObjectNode,S>protected String mediaType()
null if unknown.null if unknown.protected ConfigParser parser()
null if unknown.null if unknown.protected abstract ConfigParser.Content<S> content() throws ConfigException
null.ConfigException - in case of loading of configuration from config source failed.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.