类 SimpleConfigurationMetadataRepository
- java.lang.Object
- org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository
- 所有已实现的接口:
Serializable
,ConfigurationMetadataRepository
public class SimpleConfigurationMetadataRepository extends Object implements ConfigurationMetadataRepository, Serializable
The defaultConfigurationMetadataRepository
implementation.- 从以下版本开始:
- 1.3.0
- 另请参阅:
- 序列化表格
字段概要
从接口继承的字段 org.springframework.boot.configurationmetadata.ConfigurationMetadataRepository
ROOT_GROUP
构造器概要
构造器 构造器 说明 SimpleConfigurationMetadataRepository()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
SimpleConfigurationMetadataRepository
public SimpleConfigurationMetadataRepository()
方法详细资料
getAllGroups
public Map<String,ConfigurationMetadataGroup> getAllGroups()
从接口复制的说明:ConfigurationMetadataRepository
Return the groups, indexed by id.- 指定者:
getAllGroups
在接口中ConfigurationMetadataRepository
- 返回:
- all configuration meta-data groups
getAllProperties
public Map<String,ConfigurationMetadataProperty> getAllProperties()
从接口复制的说明:ConfigurationMetadataRepository
Return 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 aConfigurationMetadataProperty
with thesource
that 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