org.springframework.boot.actuate.autoconfigure.info.ConditionalOnEnabledInfoContributor Java Examples

The following examples show how to use org.springframework.boot.actuate.autoconfigure.info.ConditionalOnEnabledInfoContributor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActuatorInfoAutoConfiguration.java    From spring-cloud-formula with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnEnabledInfoContributor("launcher")
@ConditionalOnSingleCandidate(LauncherInfoProperties.class)
@ConditionalOnMissingBean
@Order(DEFAULT_ORDER)
public LauncherInfoContributor launcherInfoContributor(LauncherInfoProperties properties) {
    return new LauncherInfoContributor(properties, this.properties.getLauncher().getMode());
}
 
Example #2
Source File: JHipsterInfoContributorConfiguration.java    From jhipster with Apache License 2.0 5 votes vote down vote up
/**
 * <p>activeProfilesInfoContributor.</p>
 *
 * @param environment a {@link org.springframework.core.env.ConfigurableEnvironment} object.
 * @return a {@link io.github.jhipster.config.info.ActiveProfilesInfoContributor} object.
 */
@Bean
@ConditionalOnEnabledInfoContributor("active-profiles")
public ActiveProfilesInfoContributor activeProfilesInfoContributor(
    ConfigurableEnvironment environment) {
    return new ActiveProfilesInfoContributor(environment);
}
 
Example #3
Source File: FlowableInfoAutoConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnEnabledInfoContributor("flowable")
public FlowableInfoContributor flowableInfoContributor() {
    return new FlowableInfoContributor();
}