public class GitInfoContributor extends InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>
InfoContributor that exposes GitProperties.InfoPropertiesInfoContributor.Mode| Constructor and Description |
|---|
GitInfoContributor(org.springframework.boot.info.GitProperties properties) |
GitInfoContributor(org.springframework.boot.info.GitProperties properties,
InfoPropertiesInfoContributor.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(Info.Builder builder)
Contributes additional details using the specified
Builder. |
protected void |
postProcessContent(java.util.Map<java.lang.String,java.lang.Object> content)
Post-process the content to expose.
|
protected org.springframework.core.env.PropertySource<?> |
toSimplePropertySource()
Return a
PropertySource for the SIMPLE mode. |
copyIfSet, extractContent, generateContent, getMode, getNestedMap, getProperties, replaceValue, toPropertySourcepublic GitInfoContributor(org.springframework.boot.info.GitProperties properties)
public GitInfoContributor(org.springframework.boot.info.GitProperties properties,
InfoPropertiesInfoContributor.Mode mode)
public void contribute(Info.Builder builder)
InfoContributorBuilder.builder - the builder to useprotected org.springframework.core.env.PropertySource<?> toSimplePropertySource()
InfoPropertiesInfoContributorPropertySource for the SIMPLE mode.toSimplePropertySource in class InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>InfoPropertiesInfoContributor.toPropertySource()protected void postProcessContent(java.util.Map<java.lang.String,java.lang.Object> content)
Instant instances.postProcessContent in class InfoPropertiesInfoContributor<org.springframework.boot.info.GitProperties>content - the content to expose