org.zodiac.autoconfigure.context.AppEnvironmentConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.context;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.ConfigurableEnvironment;
import org.zodiac.core.context.environment.AppEnvironmentManager;
@SpringBootConfiguration
public class AppEnvironmentConfiguration {
@Bean
@ConditionalOnMissingBean
protected AppEnvironmentManager appEnvironmentManager(ConfigurableEnvironment environment) {
return new AppEnvironmentManager(environment);
}
}