Class GitInfoContributor
java.lang.Object
org.springframework.boot.actuate.info.InfoPropertiesInfoContributor<GitProperties>
org.springframework.boot.actuate.info.GitInfoContributor
- All Implemented Interfaces:
InfoContributor
@ImportRuntimeHints(org.springframework.boot.actuate.info.GitInfoContributor.GitInfoContributorRuntimeHints.class)
public class GitInfoContributor
extends InfoPropertiesInfoContributor<GitProperties>
An
InfoContributor
that exposes GitProperties
.- Since:
- 1.4.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
InfoPropertiesInfoContributor.Mode
-
Constructor Summary
ConstructorDescriptionGitInfoContributor
(GitProperties properties) GitInfoContributor
(GitProperties properties, InfoPropertiesInfoContributor.Mode mode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contribute
(Info.Builder builder) Contributes additional details using the specifiedBuilder
.protected void
postProcessContent
(Map<String, Object> content) Post-process the content to expose.protected PropertySource<?>
Return aPropertySource
for theSIMPLE
mode.Methods inherited from class org.springframework.boot.actuate.info.InfoPropertiesInfoContributor
copyIfSet, extractContent, generateContent, getMode, getNestedMap, getProperties, replaceValue, toPropertySource
-
Constructor Details
-
GitInfoContributor
-
GitInfoContributor
-
-
Method Details
-
contribute
Description copied from interface:InfoContributor
Contributes additional details using the specifiedBuilder
.- Parameters:
builder
- the builder to use
-
toSimplePropertySource
Description copied from class:InfoPropertiesInfoContributor
Return aPropertySource
for theSIMPLE
mode.- Specified by:
toSimplePropertySource
in classInfoPropertiesInfoContributor<GitProperties>
- Returns:
- the property source for the simple model
- See Also:
-
postProcessContent
Post-process the content to expose. By default, well known keys representing dates are converted toInstant
instances.- Overrides:
postProcessContent
in classInfoPropertiesInfoContributor<GitProperties>
- Parameters:
content
- the content to expose
-