8000 Allow HystrixFeign.Builder to be used incrementally. by spencergibb · Pull Request #313 · OpenFeign/feign · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@spencergibb
Copy link
Contributor

No description provided.

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 the change is in a terminal method you need it's original type 😞. One option is to move create a fallback() method which could retain the fluent style. Another is to create an AbstractBuilder<B> that returns B from each method allowing downstream builders to have custom terminal methods.

@cloudbees-pull-request-builder

NetflixOSS » feign » feign-pull-requests #200 SUCCESS
This pull request looks good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the method can no longer be hidden, what do you think should be done here?

Copy link
Contributor

Choose a reason for hiding this comment

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

unsupportedoperationexception

@codefromthecrypt
Copy link
Contributor

I had this in my intellij history, so yeah :P

codefromthecrypt pushed a commit that referenced this pull request Jan 14, 2016
Uses covariant overrides so that those collecting Feign configuration
via `Feign.Builder` can cast into `HystrixFeign.builder` to target an
api.

Closes #313
@codefromthecrypt
Copy link
Contributor

ps the feeling against a base builder<X extends builder> is more-or-less that this became unwieldy in other projects (like jclouds). For example a type doing a static method now has an awkward Builder<?> which makes overrides even weirder to resolve. I don't like covariance either, just it contains the complexity as an internal detail which users won't see.

@spencergibb spencergibb deleted the hystrix-builder-reuse branch January 14, 2016 17:08
velo pushed a commit that referenced this pull request Oct 8, 2024
Uses covariant overrides so that those collecting Feign configuration
via `Feign.Builder` can cast into `HystrixFeign.builder` to target an
api.

Closes #313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0