本文整理汇总了Java中feign.codec.ErrorDecoder.Default方法的典型用法代码示例。如果您正苦于以下问题:Java ErrorDecoder.Default方法的具体用法?Java ErrorDecoder.Default怎么用?Java ErrorDecoder.Default使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类feign.codec.ErrorDecoder
的用法示例。
在下文中一共展示了ErrorDecoder.Default方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invokeAfterPropertiesSet
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
public void invokeAfterPropertiesSet() throws Exception {
feign.codec.ErrorDecoder errorDecoder = null;
String[] beanNameArray = this.applicationContext.getBeanNamesForType(feign.codec.ErrorDecoder.class);
for (int i = 0; beanNameArray != null && i < beanNameArray.length; i++) {
String beanName = beanNameArray[i];
Object beanInst = this.applicationContext.getBean(beanName);
if (CompensableFeignErrorDecoder.class.isInstance(beanInst)) {
continue;
} else if (errorDecoder != null) {
throw new RuntimeException("There are more than one feign.codec.ErrorDecoder exists!");
} else {
errorDecoder = (feign.codec.ErrorDecoder) beanInst;
}
}
if (errorDecoder == null) {
errorDecoder = new ErrorDecoder.Default();
} // end-if (errorDecoder == null)
this.delegate = errorDecoder;
}
示例2: invokeAfterPropertiesSet
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
public void invokeAfterPropertiesSet() throws Exception {
feign.codec.ErrorDecoder errorDecoder = null;
String[] beanNameArray = this.applicationContext.getBeanNamesForType(feign.codec.ErrorDecoder.class);
for (int i = 0; beanNameArray != null && i < beanNameArray.length; i++) {
String beanName = beanNameArray[i];
Object beanInst = this.applicationContext.getBean(beanName);
if (TransactionFeignErrorDecoder.class.isInstance(beanInst)) {
continue;
} else if (errorDecoder != null) {
throw new RuntimeException("There are more than one feign.codec.ErrorDecoder exists!");
} else {
errorDecoder = (feign.codec.ErrorDecoder) beanInst;
}
}
if (errorDecoder == null) {
errorDecoder = new ErrorDecoder.Default();
} // end-if (errorDecoder == null)
this.delegate = errorDecoder;
}
示例3: ErrorResponseDecoder
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
public ErrorResponseDecoder(ObjectMapper mapper) {
this(mapper, new ErrorDecoder.Default(), ErrorResponseDecoder::extract);
}
示例4: errorDecoder
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
@org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean(feign.codec.ErrorDecoder.class)
@org.springframework.context.annotation.Bean
public feign.codec.ErrorDecoder errorDecoder() {
return new ErrorDecoder.Default();
}
示例5: TraceFeignErrorDecoder
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
TraceFeignErrorDecoder(BeanFactory beanFactory) {
super(beanFactory);
this.delegate = new ErrorDecoder.Default();
}
示例6: errorDecoder
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
@Bean
ErrorDecoder errorDecoder() {
return new ErrorDecoder.Default();
}
示例7: feignErrorDecoder
import feign.codec.ErrorDecoder; //导入方法依赖的package包/类
@Bean
ErrorDecoder feignErrorDecoder() {
return new ErrorDecoder.Default();
}