We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Any provider added to rest client via @Provider annotation is unable to inject config bean or any other application scoped bean.
@Provider
@RegisterRestClient @RegisterProvider(RequestFilter.class) public interface EchoService {....}
And example the provider impl:
public class RequestFilter implements ClientRequestFilter { @Inject AppConfig config; //is always null @Inject SomeBean bean; //is always null @Override public void filter(ClientRequestContext requestContext) throws IOException {...}
Expected behavior Config or application scope bean injected and not null
Actual behavior Any bean injected via @Inject is alway null (no errors in logs during argumentation nor during runtime.
@Inject
To Reproduce Steps to reproduce the behavior:
mvn compile quarkus:dev
curl http://localhost:8080/echo
null
Configuration
Screenshots N/A
Environment (please complete the following information):
uname -a
ver
18.7.0 Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
java -version
java version "1.8.0_192" Java(TM) SE Runtime Environment (build 1.8.0_192-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
Additional context
I found out there is a closed issue for similar problem, but looks like the fix doesn't work, see: quarkusio#2773
$upsteam:5752$
The text was updated successfully, but these errors were encountered:
geoand
No branches or pull requests
Describe the bug
Any provider added to rest client via
@Provider
annotation is unable to inject config bean or any other application scoped bean.And example the provider impl:
Expected behavior
Config or application scope bean injected and not null
Actual behavior
Any bean injected via
@Inject
is alway null (no errors in logs during argumentation nor during runtime.To Reproduce
Steps to reproduce the behavior:
mvn compile quarkus:dev
curl http://localhost:8080/echo
null
referenceConfiguration
Screenshots
N/A
Environment (please complete the following information):
uname -a
orver
:18.7.0 Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
java -version
:Additional context
I found out there is a closed issue for similar problem, but looks like the fix doesn't work, see: quarkusio#2773
The text was updated successfully, but these errors were encountered: