org.zodiac.autoconfigure.datasource.DynamicDataSourceObjectAutoConfiguration Maven / Gradle / Ivy
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();
}
}