类 SimpleConfigurationMetadataRepository
- java.lang.Object
 - org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository
 
- 所有已实现的接口:
 Serializable,ConfigurationMetadataRepository
public class SimpleConfigurationMetadataRepository extends Object implements ConfigurationMetadataRepository, Serializable
The defaultConfigurationMetadataRepositoryimplementation.- 从以下版本开始:
 - 1.3.0
 - 另请参阅:
 - 序列化表格
 
字段概要
从接口继承的字段 org.springframework.boot.configurationmetadata.ConfigurationMetadataRepository
ROOT_GROUP
构造器概要
构造器 构造器 说明 SimpleConfigurationMetadataRepository()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
SimpleConfigurationMetadataRepository
public SimpleConfigurationMetadataRepository()
方法详细资料
getAllGroups
public Map<String,ConfigurationMetadataGroup> getAllGroups()
从接口复制的说明:ConfigurationMetadataRepositoryReturn the groups, indexed by id.- 指定者:
 getAllGroups在接口中ConfigurationMetadataRepository- 返回:
 - all configuration meta-data groups
 
getAllProperties
public Map<String,ConfigurationMetadataProperty> getAllProperties()
从接口复制的说明:ConfigurationMetadataRepositoryReturn the properties, indexed by id.- 指定者:
 getAllProperties在接口中ConfigurationMetadataRepository- 返回:
 - all configuration meta-data properties
 
add
public void add(Collection<ConfigurationMetadataSource> sources)
Register the specifiedsources.- 参数:
 sources- the sources to add
add
public void add(ConfigurationMetadataProperty property, ConfigurationMetadataSource source)
Add aConfigurationMetadataPropertywith thesourcethat defines it, if any.- 参数:
 property- the property to addsource- the source
include
public void include(ConfigurationMetadataRepository repository)
Merge the content of the specified repository to this repository.- 参数:
 repository- the repository to include