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 ConfigurationMetadataRepository
ROOT_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Collection<ConfigurationMetadataSource> sources) Register the specifiedsources.voidadd(ConfigurationMetadataProperty property, ConfigurationMetadataSource source) Add aConfigurationMetadataPropertywith thesourcethat defines it, if any.Return the groups, indexed by id.Return the properties, indexed by id.voidinclude(ConfigurationMetadataRepository repository) Merge the content of the specified repository to this repository.
-
Constructor Details
-
SimpleConfigurationMetadataRepository
public SimpleConfigurationMetadataRepository()
-
-
Method Details
-
getAllGroups
Description copied from interface:ConfigurationMetadataRepositoryReturn the groups, indexed by id.- Specified by:
getAllGroupsin interfaceConfigurationMetadataRepository- Returns:
- all configuration meta-data groups
-
getAllProperties
Description copied from interface:ConfigurationMetadataRepositoryReturn the properties, indexed by id.- Specified by:
getAllPropertiesin interfaceConfigurationMetadataRepository- Returns:
- all configuration meta-data properties
-
add
Register the specifiedsources.- Parameters:
sources- the sources to add
-
add
Add aConfigurationMetadataPropertywith thesourcethat 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
-