public class GitInfoContributor extends InfoPropertiesInfoContributor<GitProperties>
InfoContributor
that exposes GitProperties
.InfoPropertiesInfoContributor.Mode
Constructor and Description |
---|
GitInfoContributor(GitProperties properties) |
GitInfoContributor(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(Map<String,Object> content)
Post-process the content to expose.
|
protected PropertySource<?> |
toSimplePropertySource()
Return a
PropertySource for the SIMPLE mode. |
copyIfSet, extractContent, generateContent, getMode, getNestedMap, getProperties, replaceValue, toPropertySource
public GitInfoContributor(GitProperties properties)
public GitInfoContributor(GitProperties properties, InfoPropertiesInfoContributor.Mode mode)
public void contribute(Info.Builder builder)
InfoContributor
Builder
.builder
- the builder to useprotected PropertySource<?> toSimplePropertySource()
InfoPropertiesInfoContributor
PropertySource
for the SIMPLE
mode.toSimplePropertySource
in class InfoPropertiesInfoContributor<GitProperties>
InfoPropertiesInfoContributor.toPropertySource()
protected void postProcessContent(Map<String,Object> content)
Instant
instances.postProcessContent
in class InfoPropertiesInfoContributor<GitProperties>
content
- the content to exposeCopyright © 2018 Pivotal Software, Inc.. All rights reserved.