Skip to content
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

Emitter support and reactive dependency updates #1853

Merged
merged 7 commits into from
Apr 4, 2019

Conversation

cescoffier
Copy link
Member

  • Rework the emitter support
  • Update the Reactive Messaging version and Axle client version
  • Update documentation (ConsumeEvent.blocking, new axle method)

@cescoffier cescoffier added this to the 0.13.0 milestone Apr 4, 2019
@cescoffier cescoffier requested a review from mkouba April 4, 2019 07:26
@cescoffier
Copy link
Member Author

@mkouba Code updated.

@cescoffier cescoffier requested a review from mkouba April 4, 2019 09:29
.asClass()
.methods()) {
ClassInfo ci = bean.getTarget()
.orElseThrow(() -> new IllegalStateException("Target expected")).asClass();
Copy link
Contributor

Choose a reason for hiding this comment

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

If bean.isClassBean()==true the target is never empty.

if (annotationStore.hasAnnotation(method, NAME_INCOMING)
|| annotationStore.hasAnnotation(method, NAME_OUTGOING)) {
// TODO: validate method params and return type?
mediatorMethods.produce(new MediatorBuildItem(bean, method));
LOGGER.debugf("Found mediator business method %s declared on %s", method, bean);
}
}

for (FieldInfo field : ci.fields()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, this means that we only support field injection. In fact, we can simply iterate over all injection points:

for (InjectionPointInfo injectionPoint : validationContext.get(Key.INJECTION_POINTS)) {
   // TODO
}

I'll try to update this PR in a moment...

@mkouba
Copy link
Contributor

mkouba commented Apr 4, 2019

@cescoffier Pls review my updates...

@cescoffier cescoffier merged commit 1815e8d into quarkusio:master Apr 4, 2019
@cescoffier cescoffier deleted the features/work-on-emitter branch April 4, 2019 14:44
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.

2 participants