org.zodiac.autoconfigure.context.AppConfigPropertiesConfiguration 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.zodiac.core.context.properties.AppConfigurationPropertiesBeans;
import org.zodiac.core.context.properties.AppConfigurationPropertiesRebinder;
@SpringBootConfiguration
public class AppConfigPropertiesConfiguration {
public AppConfigPropertiesConfiguration() {
super();
}
@Bean
@ConditionalOnMissingBean
protected AppConfigurationPropertiesBeans configurationPropertiesBeans() {
return new AppConfigurationPropertiesBeans();
}
@Bean
@ConditionalOnMissingBean
protected AppConfigurationPropertiesRebinder configurationPropertiesRebinder(AppConfigurationPropertiesBeans beans) {
return new AppConfigurationPropertiesRebinder(beans);
}
}