S - a type of data stamppublic abstract class AbstractConfigSource<S> extends AbstractSource<ConfigNode.ObjectNode,S> implements ConfigSource
ConfigSource, suitable for concrete
implementations to extend.AbstractConfigSource.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractConfigSource.Builder<B extends AbstractConfigSource.Builder<B,T>,T>
A common
ConfigSource builder ready to be extended by builder implementation related to ConfigSource
extensions. |
AbstractSource.Data<D,S>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfigSource(AbstractConfigSource.Builder<?,?> builder)
Initializes config source from builder.
|
| Modifier and Type | Method and Description |
|---|---|
Flow.Publisher<Optional<ConfigNode.ObjectNode>> |
changes()
Returns a
Flow.Publisher to which the caller can subscribe in
order to receive change notifications. |
protected ConfigContext |
configContext()
Config context associated with this source.
|
void |
init(ConfigContext context)
Initialize the config source with a
ConfigContext. |
protected AbstractSource.Data<ConfigNode.ObjectNode,S> |
processLoadedData(AbstractSource.Data<ConfigNode.ObjectNode,S> data)
Performs any postprocessing of config data after loading.
|
dataStamp, description, fireChangeEvent, isMandatory, load, loadData, uidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getclose, description, loadprotected AbstractConfigSource(AbstractConfigSource.Builder<?,?> builder)
builder - builder to be initialized frompublic final void init(ConfigContext context)
ConfigSourceConfigContext.
The method is executed during Config bootstrapping by Config.Builder.
init in interface ConfigSourcecontext - a config contextprotected ConfigContext configContext()
protected AbstractSource.Data<ConfigNode.ObjectNode,S> processLoadedData(AbstractSource.Data<ConfigNode.ObjectNode,S> data)
AbstractSourceData.processLoadedData in class AbstractSource<ConfigNode.ObjectNode,S>data - an input datapublic final Flow.Publisher<Optional<ConfigNode.ObjectNode>> changes()
Flow.Publisher to which the caller can subscribe in
order to receive change notifications.
Method Flow.Subscriber#onError(Throwable) is called in case of error listening on config source data.
Method Flow.Subscriber#onComplete() is never called.
All subscribers are notified using specified executor.
changes in interface Changeable<ConfigNode.ObjectNode>changes in interface Source<ConfigNode.ObjectNode>nullCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.