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