类 ConfigurationMetadataSource
- java.lang.Object
 - org.springframework.boot.configurationmetadata.ConfigurationMetadataSource
 
- 所有已实现的接口:
 Serializable
public class ConfigurationMetadataSource extends Object implements Serializable
A source of configuration metadata. Also defines where the source is declared, for instance if it is defined as a@Bean.- 从以下版本开始:
 - 1.3.0
 - 另请参阅:
 - 序列化表格
 
构造器概要
构造器 构造器 说明 ConfigurationMetadataSource()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetDescription()A description of this source, if any.StringgetGroupId()The identifier of the group to which this source is associated.Map<String,ConfigurationMetadataProperty>getProperties()Return the properties defined by this source.StringgetShortDescription()A single-line, single-sentence description of this source, if any.StringgetSourceMethod()The method name that defines this source, if any.StringgetSourceType()The type where this source is defined.StringgetType()The type of the source.voidsetShortDescription(String shortDescription)
构造器详细资料
ConfigurationMetadataSource
public ConfigurationMetadataSource()
方法详细资料
getGroupId
public String getGroupId()
The identifier of the group to which this source is associated.- 返回:
 - the group id
 
getType
public String getType()
The type of the source. Usually this is the fully qualified name of a class that defines configuration items. This class may or may not be available at runtime.- 返回:
 - the type
 
getDescription
public String getDescription()
A description of this source, if any. Can be multi-lines.- 返回:
 - the description
 - 另请参阅:
 getShortDescription()
getShortDescription
public String getShortDescription()
A single-line, single-sentence description of this source, if any.- 返回:
 - the short description
 - 另请参阅:
 getDescription()
setShortDescription
public void setShortDescription(String shortDescription)
getSourceType
public String getSourceType()
The type where this source is defined. This can be identical to thetypeif the source is self-defined.- 返回:
 - the source type
 
getSourceMethod
public String getSourceMethod()
The method name that defines this source, if any.- 返回:
 - the source method
 
getProperties
public Map<String,ConfigurationMetadataProperty> getProperties()
Return the properties defined by this source.- 返回:
 - the properties