Class GitInfoContributor
- java.lang.Object
- org.springframework.boot.actuate.info.InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- org.springframework.boot.actuate.info.GitInfoContributor
- All Implemented Interfaces:
InfoContributor
public class GitInfoContributor extends InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
AnInfoContributor
that exposesGitProperties
.- Since:
- 1.4.0
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
InfoPropertiesInfoContributor.Mode
Constructor Summary
Constructors Constructor Description GitInfoContributor(org.springframework.boot.info.GitProperties properties)
GitInfoContributor(org.springframework.boot.info.GitProperties properties, InfoPropertiesInfoContributor.Mode mode)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Methods inherited from class org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
copyIfSet, extractContent, generateContent, getMode, getNestedMap, getProperties, replaceValue, toPropertySource
Constructor Detail
GitInfoContributor
public GitInfoContributor(org.springframework.boot.info.GitProperties properties)
GitInfoContributor
public GitInfoContributor(org.springframework.boot.info.GitProperties properties, InfoPropertiesInfoContributor.Mode mode)
Method Detail
contribute
public void contribute(Info.Builder builder)
Description copied from interface:InfoContributor
Contributes additional details using the specifiedBuilder
.- Parameters:
builder
- the builder to use
toSimplePropertySource
protected org.springframework.core.env.PropertySource<?> toSimplePropertySource()
Description copied from class:InfoPropertiesInfoContributor
Return aPropertySource
for theSIMPLE
mode.- Specified by:
toSimplePropertySource
in classInfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- Returns:
- the property source for the simple model
- See Also:
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.- Overrides:
postProcessContent
in classInfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
- Parameters:
content
- the content to expose