Class SimpleConfigurationMetadataRepository
- java.lang.Object
- org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository
- All Implemented Interfaces:
Serializable,ConfigurationMetadataRepository
public class SimpleConfigurationMetadataRepository extends Object implements ConfigurationMetadataRepository, Serializable
The defaultConfigurationMetadataRepositoryimplementation.- 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 voidadd(Collection<ConfigurationMetadataSource> sources)Register the specifiedsources.voidadd(ConfigurationMetadataProperty property, ConfigurationMetadataSource source)Add aConfigurationMetadataPropertywith thesourcethat defines it, if any.Map<String,ConfigurationMetadataGroup>getAllGroups()Return the groups, indexed by id.Map<String,ConfigurationMetadataProperty>getAllProperties()Return the properties, indexed by id.voidinclude(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:ConfigurationMetadataRepositoryReturn the groups, indexed by id.- Specified by:
getAllGroupsin interfaceConfigurationMetadataRepository- Returns:
- all configuration meta-data groups
getAllProperties
public Map<String,ConfigurationMetadataProperty> getAllProperties()
Description copied from interface:ConfigurationMetadataRepositoryReturn the properties, indexed by id.- Specified by:
getAllPropertiesin 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 aConfigurationMetadataPropertywith thesourcethat 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