Module io.helidon.config
Package io.helidon.config
Class MapConfigSource.MapBuilder<T extends MapConfigSource.MapBuilder<T>>
java.lang.Object
io.helidon.config.AbstractSourceBuilder<T,Void>
 
io.helidon.config.AbstractConfigSourceBuilder<T,Void>
 
io.helidon.config.MapConfigSource.MapBuilder<T>
- Type Parameters:
- T- type of the implementing builder
- All Implemented Interfaces:
- Builder<MapConfigSource.Builder,,- MapConfigSource> - PollableSource.Builder<T>,- Source.Builder<T>,- Supplier<MapConfigSource>
- Direct Known Subclasses:
- ConfigSources.SystemPropertiesConfigSource.Builder,- MapConfigSource.Builder
- Enclosing class:
- MapConfigSource
public abstract static class MapConfigSource.MapBuilder<T extends MapConfigSource.MapBuilder<T>>
extends AbstractConfigSourceBuilder<T,Void>
implements Builder<MapConfigSource.Builder,MapConfigSource>, PollableSource.Builder<T>  
An abstract fluent API builder for 
MapConfigSource.
 If you want to extend MapConfigSource, you can use this class as a base for
 your own builder.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Map<?, ?> map()Map used as data of this config source.Map to be used as config source underlying data.Name of this source.pollingStrategy(PollingStrategy pollingStrategy) Configure a polling strategy.properties(Properties properties) Properties to be used as config source underlying data.protected StringName of the source.Methods inherited from class io.helidon.config.AbstractConfigSourceBuilderconfig, mediaType, mediaTypeMapping, parser, parserMappingMethods inherited from class io.helidon.config.AbstractSourceBuilderchangeWatcher, optional, retryPolicyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.PollableSource.BuilderpollingStrategyMethods inherited from interface io.helidon.config.spi.Source.Builderoptional, optional, retryPolicy
- 
Constructor Details- 
MapBuilderprotected MapBuilder()Creat a new builder instance.
 
- 
- 
Method Details- 
mapMap to be used as config source underlying data. The same instance is kept by the config source, to support polling.- Parameters:
- map- map to use
- Returns:
- updated builder instance
 
- 
propertiesProperties to be used as config source underlying data. The same instance is kept by the config source, to support polling.- Parameters:
- properties- properties to use
- Returns:
- updated builder instance
 
- 
nameName of this source.- Parameters:
- sourceName- name of this source
- Returns:
- updated builder instance
 
- 
pollingStrategyDescription copied from class:AbstractSourceBuilderConfigure a polling strategy. This method must be exposed by builders of sources that support polling. If you see this method as being protected in your builder, the source has removed support for polling, such asClasspathConfigSource.- Specified by:
- pollingStrategyin interface- PollableSource.Builder<T extends MapConfigSource.MapBuilder<T>>
- Overrides:
- pollingStrategyin class- AbstractSourceBuilder<T extends MapConfigSource.MapBuilder<T>,- Void> 
- Parameters:
- pollingStrategy- polling strategy to use
- Returns:
- updated builder instance
 
- 
mapMap used as data of this config source.- Returns:
- map with the data
 
- 
sourceNameName of the source.- Returns:
- name
 
 
-