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

org.zodiac.autoconfigure.datasource.DynamicDataSourceObjectAutoConfiguration Maven / Gradle / Ivy

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

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.datasource.condition.ConditionalOnDataSourceEnabled;

@SpringBootConfiguration
@ConditionalOnDataSourceEnabled
@ImportAutoConfiguration(value = {DynamicDataSourceObjectAopSwitcherAutoConfiguration.class})
@ConditionalOnClass(value = {reactor.core.publisher.Mono.class, org.zodiac.datasource.DynamicDataSourceObjectHolder.class, org.zodiac.script.engine.util.ScriptExpressions.class})
public class DynamicDataSourceObjectAutoConfiguration {

    public DynamicDataSourceObjectAutoConfiguration() {
        super();
    }

    @Bean
    @ConditionalOnMissingBean
    protected org.zodiac.datasource.DynamicDataSourceBeanPostProcessor dynamicDataSourceBeanPostProcessor() {
        return new org.zodiac.datasource.DynamicDataSourceBeanPostProcessor();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy