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

org.zodiac.autoconfigure.context.AppLifecycleMvcEndpointAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.context;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.ConfigurableEnvironment;
import org.zodiac.core.context.environment.AppEnvironmentManager;

@SpringBootConfiguration
@AutoConfigureAfter(value = {WebMvcAutoConfiguration.class})
public class AppLifecycleMvcEndpointAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public AppEnvironmentManager appEnvironmentManager(ConfigurableEnvironment environment) {
        return new AppEnvironmentManager(environment);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy