MapConfigurationPropertySource

A ConfigurationPropertySource backed by a Map and using standard name mapping rules.

Author

Phillip Webb

Madhura Bhave

Since

2.0.0

Constructors

Link copied to clipboard
constructor()
Create a new empty MapConfigurationPropertySource instance.
constructor(map: Map<out Any, out Any>)
Create a new MapConfigurationPropertySource instance with entries copies from the specified map.

Functions

Link copied to clipboard
Returns if the source contains any descendants of the specified name.
Link copied to clipboard
Return a filtered variant of this source, containing only names that match the given Predicate.
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
Return a single new ConfigurationPropertySource adapted from the given Spring PropertySource or null if the source cannot be adapted.
Link copied to clipboard
Return a single ConfigurationProperty from the source or null if no property can be found.
Link copied to clipboard
Return the underlying source that is actually providing the properties.
Link copied to clipboard
abstract fun iterator(): Iterator<T>

Return an iterator for the names managed by this source.
Link copied to clipboard
open fun put(name: Any, value: Any)
Add an individual entry.
Link copied to clipboard
open fun putAll(map: Map<out Any, out Any>)
Add all entries from the specified map.
Link copied to clipboard
Link copied to clipboard
Returns a sequential Stream for the names managed by this source.
Link copied to clipboard
Return a variant of this source that supports name aliases.
Link copied to clipboard
Return a variant of this source that supports a prefix.