Class ClasspathOverrideSource
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 OverrideSource
OverrideSource.OverrideDataModifier and TypeInterfaceDescriptionstatic final classGroup of config override settings. -
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 AbstractSource
changeWatcher, description, optional, pollingStrategy, retryPolicyModifier and TypeMethodDescriptionprotected Optional<ChangeWatcher<Object>> A change watcher of this source, if it implementsWatchableSourceand has one configured.Short, human-readable summary referring to the underlying source.booleanoptional()Whether this source is optional.protected Optional<PollingStrategy> A polling strategy of this source, if it implementsPollableSourceand has one configured.Retry policy configured on this config source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OverrideSource
get
-
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
-