de.otto.edison.status.configuration.TeamInfoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-core Show documentation
Show all versions of edison-core Show documentation
Core library for all Edison libraries.
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);
}
}