类 GitInfoContributor
- java.lang.Object
- org.springframework.boot.actuate.info.InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- org.springframework.boot.actuate.info.GitInfoContributor
- 所有已实现的接口:
InfoContributor
public class GitInfoContributor extends InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
AnInfoContributor
that exposesGitProperties
.- 从以下版本开始:
- 1.4.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
InfoPropertiesInfoContributor.Mode
构造器概要
构造器 构造器 说明 GitInfoContributor(org.springframework.boot.info.GitProperties properties)
GitInfoContributor(org.springframework.boot.info.GitProperties properties, InfoPropertiesInfoContributor.Mode mode)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
contribute(Info.Builder builder)
Contributes additional details using the specifiedBuilder
.protected void
postProcessContent(Map<String,Object> content)
Post-process the content to expose.protected org.springframework.core.env.PropertySource<?>
toSimplePropertySource()
Return aPropertySource
for theSIMPLE
mode.从类继承的方法 org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
copyIfSet, extractContent, generateContent, getMode, getNestedMap, getProperties, replaceValue, toPropertySource
构造器详细资料
GitInfoContributor
public GitInfoContributor(org.springframework.boot.info.GitProperties properties)
GitInfoContributor
public GitInfoContributor(org.springframework.boot.info.GitProperties properties, InfoPropertiesInfoContributor.Mode mode)
方法详细资料
contribute
public void contribute(Info.Builder builder)
从接口复制的说明:InfoContributor
Contributes additional details using the specifiedBuilder
.- 参数:
builder
- the builder to use
toSimplePropertySource
protected org.springframework.core.env.PropertySource<?> toSimplePropertySource()
从类复制的说明:InfoPropertiesInfoContributor
Return aPropertySource
for theSIMPLE
mode.- 指定者:
toSimplePropertySource
在类中InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- 返回:
- the property source for the simple model
- 另请参阅:
InfoPropertiesInfoContributor.toPropertySource()
postProcessContent
protected void postProcessContent(Map<String,Object> content)
Post-process the content to expose. By default, well known keys representing dates are converted toInstant
instances.- 覆盖:
postProcessContent
在类中InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- 参数:
content
- the content to expose