All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.otto.edison.status.configuration.TeamInfoConfiguration Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package de.otto.edison.status.configuration;

import de.otto.edison.status.domain.TeamInfo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Configuration of the TeamInfo.
 */
@Configuration
@EnableConfigurationProperties(TeamInfoProperties.class)
public class TeamInfoConfiguration {

    @Bean
    @ConditionalOnMissingBean(TeamInfo.class)
    public TeamInfo teamInfo(final TeamInfoProperties teamInfoProperties) {
        return TeamInfo.teamInfo(teamInfoProperties);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy