java.lang.Object
io.helidon.config.AbstractSource
io.helidon.config.ClasspathOverrideSource
- All Implemented Interfaces:
OverrideSource,Source,Supplier<OverrideSource>
OverrideSource implementation that loads override definitions from a resource on a classpath.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classClasspath OverrideSource Builder.Nested classes/interfaces inherited from interface io.helidon.config.spi.OverrideSource
OverrideSource.OverrideData -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder.static ClasspathOverrideSourceCreate a new classpath override source from meta configuration, containingresourcekey and other options.load()Load override data from the underlying source.protected Stringuid()Returns universal id of source to be used to constructAbstractSource.description().Methods inherited from class io.helidon.config.AbstractSource
changeWatcher, description, optional, pollingStrategy, retryPolicyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.OverrideSource
getMethods inherited from interface io.helidon.config.spi.Source
description, exists, optional, retryPolicy
-
Method Details
-
uid
Description copied from class:AbstractSourceReturns universal id of source to be used to constructAbstractSource.description().- Overrides:
uidin classAbstractSource- Returns:
- universal id of source
-
load
Description copied from interface:OverrideSourceLoad override data from the underlying source.- Specified by:
loadin interfaceOverrideSource- Returns:
- override data if present, empty otherwise
- Throws:
ConfigException- in case the loading of data failed
-
create
Create a new classpath override source from meta configuration, containingresourcekey and other options.- Parameters:
config- meta configuration- Returns:
- a new classpath override source
-
builder
Create a new fluent API builder.- Returns:
- a new builder
-