openfeign / feign-cdi Goto Github PK
View Code? Open in Web Editor NEWCDI provider for injecting Feign types
License: Apache License 2.0
CDI provider for injecting Feign types
License: Apache License 2.0
From @johnament on December 4, 2016 13:30
Feign is an amazing library for working with type safe REST clients. It simplifies a lot of day to day development work being able to leverage the client.
CDI is a dependency injection tool. While a user can define producer methods there is still the boilerplate overhead that they may have to deal with.
I'd like to propose adding a CDI module, which will look for interfaces supporting Feign and provide injection points to CDI users to simply inject their clients. No additional development, all annotation based and configured as needed.
It should provide some kind of fallback to look for common builders for interfaces and leverage those whenever possible.
Copied from original issue: OpenFeign/feign#500
There are an error in the Feign CDI module, when the producer bean tries to get the bean client scope annotation.
Calling getClass()
on an annotation may return a proxy class instead of wanted class.
Related pull request: #7
Related issue: OpenFeign/feign#925
Add support for the optional capabilities provided in Hystrix module. Since the module provides its own builder, need to leverage that builder instead of the native builder.
Instead of expecting all config in annotations, we should also support produced instances.
Provide some core Feign integration - able to create injection targets based on properly annotated feign interfaces.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.