Skip to content

Conversation

Sam-Kruglov
Copy link
Contributor

fixes #499

context.close();
}

@Test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied from above, diff 83, 84, 88, 90

ReflectionUtils.makeAccessible(factoryBeanField);
final FeignClientFactoryBean factoryBean = (FeignClientFactoryBean) ReflectionUtils.getField(factoryBeanField,
builder);
builder);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using IDEA style from spring-cloud-build-tools

Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sam-Kruglov Thanks for submitting the PR. In general, it looks good. There are a few minor issues to address - please take a look at the comments. Also, please add your full name with @author tags to the javadocs of the classes you've changed. Apart from this, since this is not backwards incompatible, I'm thinking it would make sense to add it to the 2.2.x branch instead of master, so that it's available in the Hoxton release train as well (the easiest way of doing that would probably be to cherry-pick the commits against 2.2.x and create a new branch and PR).


private boolean followRedirects = new Request.Options().isFollowRedirects();

private List<FeignBuilderCustomizer> additionalCustomizers = new LinkedList<>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you chosen LinkedList?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we don't really need the indices here, but ok, I'll put array instead to keep things consistent.

}

/**
* @param customizer applied in the same order as supplied here
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a description line on top of the javadoc and the @return tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is self-explanatory but sure

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant sth more like the {@link Builder} with the customizer added rather than just this.

@Sam-Kruglov Sam-Kruglov force-pushed the feature/499_customizer branch from 3c71c48 to 85b724c Compare April 12, 2021 14:16
@Sam-Kruglov Sam-Kruglov changed the base branch from master to 2.2.x April 12, 2021 14:16
@Sam-Kruglov
Copy link
Contributor Author

rerouted to 2.2.x

@Sam-Kruglov Sam-Kruglov force-pushed the feature/499_customizer branch from 85b724c to 7ada18f Compare April 12, 2021 14:19
Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sam-Kruglov Thanks for adding the changes - just one small change to be made and it will be good to merge.

}

/**
* @param customizer applied in the same order as supplied here
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant sth more like the {@link Builder} with the customizer added rather than just this.

@Sam-Kruglov Sam-Kruglov force-pushed the feature/499_customizer branch from 7ada18f to ebc3f58 Compare April 12, 2021 15:26
@OlgaMaciaszek OlgaMaciaszek added enhancement New feature or request and removed in progress labels Apr 13, 2021
@OlgaMaciaszek OlgaMaciaszek added this to the 2.2.8.RELEASE milestone Apr 13, 2021
@OlgaMaciaszek
Copy link
Collaborator

Fixes gh-499

@OlgaMaciaszek OlgaMaciaszek removed this from the 2.2.8.RELEASE milestone Apr 13, 2021
Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@OlgaMaciaszek OlgaMaciaszek merged commit 4d82762 into spring-cloud:2.2.x Apr 13, 2021
@Sam-Kruglov Sam-Kruglov deleted the feature/499_customizer branch September 28, 2021 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add FeignBuilderCustomizer support to FeignClientBuilder
3 participants