Java Code Examples for

The following examples show how to use These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public OpenFeignSpringMvcContract(List<AnnotatedParameterProcessor> annotatedParameterProcessors,
    ConversionService conversionService) {
    Assert.notNull(annotatedParameterProcessors, "Parameter processors can not be null.");
    Assert.notNull(conversionService, "ConversionService can not be null.");

    List<AnnotatedParameterProcessor> processors;
    if (!annotatedParameterProcessors.isEmpty()) {
        processors = new ArrayList<>(annotatedParameterProcessors);
    } else {
        processors = getDefaultAnnotatedArgumentsProcessors();
    this.annotatedArgumentProcessors = toAnnotatedArgumentProcessorMap(processors);
    this.conversionService = conversionService;
    this.expander = new SpringMvcContract.ConvertingExpander(conversionService);
Example 2
Source Project: istio-fleetman   Source File:    License: MIT License 4 votes vote down vote up
public Contract feignContract() {
    return new SpringMvcContract();
Example 3
public Contract feignContract(ConversionService feignConversionService) {
	return new SpringMvcContract(this.parameterProcessors, feignConversionService);
Example 4
public void contractDefaultCorrect() {
Example 5
Contract feignContract() {
	return new SpringMvcContract();
Example 6
public void overrideContract() {
	Contract.Default.class.cast(this.context.getInstance("foo", Contract.class));
	SpringMvcContract.class.cast(this.context.getInstance("bar", Contract.class));
Example 7
public void init() {
	environment = new MockEnvironment();
	resolver = new DubboTransportedMethodMetadataResolver(environment,
			new SpringMvcContract());
Example 8
public feign.Contract feignContract() {
	return new SpringMvcContract();