@Configuration @EnableConfigurationProperties(value=InfoContributorProperties.class) public class InfoContributorAutoConfiguration extends Object
Auto-configuration
for standard
InfoContributor
s.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER
The default order for the core
InfoContributor beans. |
Constructor and Description |
---|
InfoContributorAutoConfiguration(InfoContributorProperties properties) |
Modifier and Type | Method and Description |
---|---|
InfoContributor |
buildInfoContributor(BuildProperties buildProperties) |
EnvironmentInfoContributor |
envInfoContributor(org.springframework.core.env.ConfigurableEnvironment environment) |
GitInfoContributor |
gitInfoContributor(GitProperties gitProperties) |
public static final int DEFAULT_ORDER
InfoContributor
beans.public InfoContributorAutoConfiguration(InfoContributorProperties properties)
@Bean @ConditionalOnEnabledInfoContributor(value="env") @Order(value=-2147483638) public EnvironmentInfoContributor envInfoContributor(org.springframework.core.env.ConfigurableEnvironment environment)
@Bean @ConditionalOnEnabledInfoContributor(value="git") @ConditionalOnSingleCandidate(value=GitProperties.class) @ConditionalOnMissingBean @Order(value=-2147483638) public GitInfoContributor gitInfoContributor(GitProperties gitProperties)
@Bean @ConditionalOnEnabledInfoContributor(value="build") @ConditionalOnSingleCandidate(value=BuildProperties.class) @Order(value=-2147483638) public InfoContributor buildInfoContributor(BuildProperties buildProperties)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.