Class InfoContributorAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.info.InfoContributorAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter(ProjectInfoAutoConfiguration.class)
@EnableConfigurationProperties(InfoContributorProperties.class)
public class InfoContributorAutoConfiguration
extends Object
Auto-configuration
for standard
InfoContributor
s.- Since:
- 2.0.0
- Author:
- Meang Akira Tanaka, Stephane Nicoll, Jonatan Ivanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default order for the coreInfoContributor
beans. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildInfoContributor
(BuildProperties buildProperties) envInfoContributor
(ConfigurableEnvironment environment) gitInfoContributor
(GitProperties gitProperties, InfoContributorProperties infoContributorProperties)
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDERThe default order for the coreInfoContributor
beans.- See Also:
-
-
Constructor Details
-
InfoContributorAutoConfiguration
public InfoContributorAutoConfiguration()
-
-
Method Details
-
envInfoContributor
@Bean @ConditionalOnEnabledInfoContributor(value="env", fallback=DISABLE) @Order(-2147483638) public EnvironmentInfoContributor envInfoContributor(ConfigurableEnvironment environment) -
gitInfoContributor
@Bean @ConditionalOnEnabledInfoContributor("git") @ConditionalOnSingleCandidate(GitProperties.class) @ConditionalOnMissingBean @Order(-2147483638) public GitInfoContributor gitInfoContributor(GitProperties gitProperties, InfoContributorProperties infoContributorProperties) -
buildInfoContributor
@Bean @ConditionalOnEnabledInfoContributor("build") @ConditionalOnSingleCandidate(BuildProperties.class) @Order(-2147483638) public InfoContributor buildInfoContributor(BuildProperties buildProperties) -
javaInfoContributor
@Bean @ConditionalOnEnabledInfoContributor(value="java", fallback=DISABLE) @Order(-2147483638) public JavaInfoContributor javaInfoContributor() -
osInfoContributor
@Bean @ConditionalOnEnabledInfoContributor(value="os", fallback=DISABLE) @Order(-2147483638) public OsInfoContributor osInfoContributor()
-