java.lang.Object
io.helidon.config.AbstractSource
io.helidon.config.AbstractConfigSource
io.helidon.config.MapConfigSource
- All Implemented Interfaces:
- ConfigSource,- NodeConfigSource,- PollableSource<Map<?,,- ?>> - Source,- Supplier<ConfigSource>
- Direct Known Subclasses:
- ConfigSources.SystemPropertiesConfigSource
public class MapConfigSource
extends AbstractConfigSource
implements ConfigSource, NodeConfigSource, PollableSource<Map<?,?>> 
ConfigSource implementation based on Map<String, String>.
 
 Map key format must conform to Config key format.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classFluent API builder forMapConfigSource.static classAn abstract fluent API builder forMapConfigSource.
- 
Method SummaryModifier and TypeMethodDescriptionstatic MapConfigSource.Builderbuilder()Create a new fluent API builder.static MapConfigSourceCreate a new config source from the provided map.static MapConfigSourcecreate(Properties properties) Create a new config source from the provided properties.booleanisModified(Map<?, ?> stamp) This method is invoked to check if this source has changed.load()Loads the underlying source data.A polling strategy of this source, if it implementsPollableSourceand has one configured.protected Stringuid()Returns universal id of source to be used to constructAbstractSource.description().Methods inherited from class io.helidon.config.AbstractConfigSourcemediaType, parser, toStringMethods inherited from class io.helidon.config.AbstractSourcechangeWatcher, description, optional, retryPolicyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigSourceget, initMethods inherited from interface io.helidon.config.spi.Sourcedescription, exists, optional, retryPolicy
- 
Method Details- 
builderCreate a new fluent API builder.- Returns:
- a new builder instance
 
- 
createCreate a new config source from the provided map.- Parameters:
- map- config properties
- Returns:
- a new map config source
 
- 
createCreate a new config source from the provided properties.- Parameters:
- properties- properties to serve as source of data
- Returns:
- a new map config source
 
- 
isModifiedDescription copied from interface:PollableSourceThis method is invoked to check if this source has changed.- Specified by:
- isModifiedin interface- PollableSource<Map<?,- ?>> 
- Parameters:
- stamp- the stamp of the last loaded content
- Returns:
- trueif the current data of this config source differ from the loaded data, including cases when the source has disappeared
 
- 
pollingStrategyDescription copied from class:AbstractSourceA polling strategy of this source, if it implementsPollableSourceand has one configured.- Specified by:
- pollingStrategyin interface- PollableSource<Map<?,- ?>> 
- Overrides:
- pollingStrategyin class- AbstractSource
- Returns:
- polling strategy if any configured
 
- 
loadDescription copied from interface:NodeConfigSourceLoads the underlying source data. This method is only called when the sourceSource.exists().The method can be invoked repeatedly, for example during retries. - Specified by:
- loadin interface- NodeConfigSource
- Returns:
- An instance of Tas read from the underlying origin of the data (if it exists)
- Throws:
- ConfigException- in case of errors loading from the underlying origin
 
- 
uidDescription copied from class:AbstractSourceReturns universal id of source to be used to constructAbstractSource.description().- Overrides:
- uidin class- AbstractSource
- Returns:
- universal id of source
 
 
-