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

ru.fix.dynamic.property.spring.config.DynamicPropertyConfig Maven / Gradle / Ivy

There is a newer version: 2.0.8
Show newest version
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