-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
RestClientProcessor - replace generated bean classes with BeanRegistrar #691
RestClientProcessor - replace generated bean classes with BeanRegistrar #691
Conversation
mkouba
commented
Jan 30, 2019
- resolves RestClientProcessor - replace generated $$RestClientProxy classes with BeanRegistrar #690
public void register(RegistrationContext registrationContext) { | ||
for (Map.Entry<DotName, ClassInfo> entry : interfaces.entrySet()) { | ||
BeanConfigurator<Object> configurator = registrationContext.configure(RestClientBase.class); | ||
configurator.types(Type.create(entry.getValue().name(), Kind.CLASS)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add all superinterfaces too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason you didn't do it right away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was too tired ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, in fact the spec does not define this and SmallRye only adds the rest interface type so I think we should align with SmallRye. And if possible switch to SmallRye ASAP.
Looks like the tests are failing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm it fixes my issue.
There is an unrelated test failure due to the new 2nd level cache code.
@wburns Do you have any idea what's going on? |
@mkouba they are on it, I reported it earlier today. Sanne commented the assertion for now so the tests should pass. Could you rebase on top of master (David just merged the config PR)? |
as beans - this behavior follows the spec - also fixed some bugs in ArC
ef87574
to
151464c
Compare
@gsmet rebased. Also @michalszynkiewicz promised to look at our MP Rest Client integration and explore the possibilities to switch to SmallRye (in fact, I have no idea why it isn't used yet). |
OK, that's nice, we have a lot of code in this extension and it would be nice to trim it down. |
And most of the code is copied from the first version of SmallRye rest client ;-) |