Class SimpleConfigurationMetadataRepository
java.lang.Object
org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository
- All Implemented Interfaces:
Serializable
,ConfigurationMetadataRepository
public class SimpleConfigurationMetadataRepository
extends Object
implements ConfigurationMetadataRepository, Serializable
The default
ConfigurationMetadataRepository
implementation.- Since:
- 1.3.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.boot.configurationmetadata.ConfigurationMetadataRepository
ROOT_GROUP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Collection<ConfigurationMetadataSource> sources) Register the specifiedsources
.void
add
(ConfigurationMetadataProperty property, ConfigurationMetadataSource source) Add aConfigurationMetadataProperty
with thesource
that defines it, if any.Return the groups, indexed by id.Return the properties, indexed by id.void
include
(ConfigurationMetadataRepository repository) Merge the content of the specified repository to this repository.
-
Constructor Details
-
SimpleConfigurationMetadataRepository
public SimpleConfigurationMetadataRepository()
-
-
Method Details
-
getAllGroups
Description copied from interface:ConfigurationMetadataRepository
Return the groups, indexed by id.- Specified by:
getAllGroups
in interfaceConfigurationMetadataRepository
- Returns:
- all configuration meta-data groups
-
getAllProperties
Description copied from interface:ConfigurationMetadataRepository
Return the properties, indexed by id.- Specified by:
getAllProperties
in interfaceConfigurationMetadataRepository
- Returns:
- all configuration meta-data properties
-
add
Register the specifiedsources
.- Parameters:
sources
- the sources to add
-
add
Add aConfigurationMetadataProperty
with thesource
that defines it, if any.- Parameters:
property
- the property to addsource
- the source
-
include
Merge the content of the specified repository to this repository.- Parameters:
repository
- the repository to include
-