ru.fix.dynamic.property.spring.config.DynamicPropertyConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamic-property-spring Show documentation
Show all versions of dynamic-property-spring Show documentation
https://github.com/ru-fix/dynamic-property
package ru.fix.dynamic.property.spring.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ru.fix.dynamic.property.api.source.DynamicPropertySource;
import ru.fix.dynamic.property.spring.DynamicPropertyAwareBeanPostProcessor;
/**
* @author Ayrat Zulkarnyaev
*/
@Configuration
public class DynamicPropertyConfig {
@Bean
@ConditionalOnClass(DynamicPropertySource.class)
public DynamicPropertyAwareBeanPostProcessor propertyAwareBeanPostProcessor(DynamicPropertySource dynamicPropertySource) {
return new DynamicPropertyAwareBeanPostProcessor(dynamicPropertySource);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy