org.zodiac.autoconfigure.feign.extension.ReactiveFeignExtensionAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.feign.extension;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.feign.condition.ConditionalOnFeignConsumerEnabled;
@SpringBootConfiguration
@ConditionalOnFeignConsumerEnabled
@ConditionalOnWebApplication(type = Type.REACTIVE)
@ConditionalOnClass(value = {feign.Client.class, org.zodiac.feign.core.FeignConsumerClientProvider.class})
public class ReactiveFeignExtensionAutoConfiguration {
public ReactiveFeignExtensionAutoConfiguration() {
super();
}
@Bean
@ConditionalOnMissingBean
protected org.zodiac.feign.core.extension.PageBindingCoprocessor pageBindingFeignContextCoprocessor() {
return new org.zodiac.feign.core.extension.reactive.ReactivePageBindingCoprocessor();
}
@Bean
@ConditionalOnMissingBean
protected org.zodiac.feign.core.extension.RpcSimpleLogTraceCoprocessor simpleLogTraceFeignContextCoprocessor() {
return new org.zodiac.feign.core.extension.reactive.ReactiveRpcSimpleLogTraceCoprocessor();
}
@Bean
@ConditionalOnMissingBean
protected org.zodiac.feign.core.extension.InsertBeanBindingCoprocessor insertBeanBindingFeignContextCoprocessor() {
return new org.zodiac.feign.core.extension.reactive.ReactiveInsertBeanBindingCoprocessor();
}
}