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
Modifier and TypeClassDescriptionstatic final class
Classpath 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 ClasspathOverrideSource
Create a new classpath override source from meta configuration, containingresource
key and other options.load()
Load override data from the underlying source.protected String
uid()
Returns universal id of source to be used to constructAbstractSource.description()
.Methods inherited from class io.helidon.config.AbstractSource
changeWatcher, description, optional, pollingStrategy, retryPolicy
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
description, exists, optional, retryPolicy
-
Method Details
-
uid
Description copied from class:AbstractSource
Returns universal id of source to be used to constructAbstractSource.description()
.- Overrides:
uid
in classAbstractSource
- Returns:
- universal id of source
-
load
Description copied from interface:OverrideSource
Load override data from the underlying source.- Specified by:
load
in 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, containingresource
key and other options.- Parameters:
config
- meta configuration- Returns:
- a new classpath override source
-
builder
Create a new fluent API builder.- Returns:
- a new builder
-