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