Package io.helidon.config.spi
Class AbstractOverrideSource<S>
- java.lang.Object
-
- io.helidon.config.spi.AbstractSource<OverrideSource.OverrideData,S>
-
- io.helidon.config.spi.AbstractOverrideSource<S>
-
- Type Parameters:
S- a type of data stamp
- All Implemented Interfaces:
Changeable<OverrideSource.OverrideData>,OverrideSource,Source<OverrideSource.OverrideData>,AutoCloseable,Supplier<OverrideSource>
public abstract class AbstractOverrideSource<S> extends AbstractSource<OverrideSource.OverrideData,S> implements OverrideSource
Base abstract implementation ofOverrideSource, suitable for concrete implementations to extend.- See Also:
AbstractOverrideSource.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractOverrideSource.Builder<B extends AbstractOverrideSource.Builder<B,T>,T>A commonOverrideSourcebuilder ready to be extended by builder implementation related toOverrideSourceextensions.-
Nested classes/interfaces inherited from class io.helidon.config.spi.AbstractSource
AbstractSource.Data<D,S>
-
Nested classes/interfaces inherited from interface io.helidon.config.spi.OverrideSource
OverrideSource.OverrideData
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOverrideSource(AbstractOverrideSource.Builder builder)Initializes config source from builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Flow.Publisher<Optional<OverrideSource.OverrideData>>changes()Returns aFlow.Publisherto which the caller can subscribe in order to receive change notifications.-
Methods inherited from class io.helidon.config.spi.AbstractSource
dataStamp, description, fireChangeEvent, isMandatory, load, loadData, processLoadedData, uid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.config.spi.OverrideSource
get
-
Methods inherited from interface io.helidon.config.spi.Source
close, description, load
-
-
-
-
Constructor Detail
-
AbstractOverrideSource
protected AbstractOverrideSource(AbstractOverrideSource.Builder builder)
Initializes config source from builder.- Parameters:
builder- builder to be initialized from
-
-
Method Detail
-
changes
public final Flow.Publisher<Optional<OverrideSource.OverrideData>> changes()
Description copied from interface:ChangeableReturns aFlow.Publisherto 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. MethodFlow.Subscriber.onComplete()is never called.
-
-