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

Add support for quarkus provided event loop #231

Merged
merged 1 commit into from Oct 7, 2019

Conversation

lburgazzoli
Copy link
Contributor

Fixes #131

@asf-ci
Copy link

asf-ci commented Oct 7, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/camel-quarkus-pr/211/

@@ -30,4 +34,26 @@ public Object unwrap(Object value) {
? ((RuntimeValue)value).getValue()
: value;
}

// TODO: fix upstream
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the issue upstream?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry was late and forgot to open an issue. The problem is that the default implementations does not merge the results from the repositories with the fallback one so if you bind something to the registry and one of the repositories return a non null set, then you' won't get the local instance but an empty answer.

@davsclaus
Copy link
Contributor

Okay fixing the registry upstream
https://issues.apache.org/jira/browse/CAMEL-14040

@asf-ci
Copy link

asf-ci commented Oct 7, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/camel-quarkus-pr/212/

@lburgazzoli lburgazzoli merged commit c8bffa2 into apache:master Oct 7, 2019
@lburgazzoli lburgazzoli deleted the github-131 branch October 7, 2019 07:49
// instantiate them in this phase.
//
boolean blacklisted = si.path.endsWith("reactive-executor") || si.path.endsWith("platform-http");
if (blacklisted) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No problem to accept this for now but it does not look like a sustainable long term solution. We should find a way for the extensions/components to blacklist themselves (via BuildItem, or however else). WDYT?

import org.apache.camel.spi.ReactiveExecutor;

/**
* Holds the {@link CamelMain} {@link RuntimeValue}.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/CamelMain/ReactiveExecutor/

@@ -117,18 +117,21 @@ public static boolean isPublic(ClassInfo ci) {
* services from resources belonging to META-INF/services/org/apache/camel.
*/
public static class ServiceInfo {
public final Path path;
Copy link
Contributor

Choose a reason for hiding this comment

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

A piece of JavaDoc stating what Path is this would be nice. Something like The path from which this {@link ServiceInfo} was read. E.g {@code META-INF/services/org/apache/camel/my-service}

import org.apache.camel.quarkus.core.deployment.CamelReactiveExecutorBuildItem;
import org.apache.camel.quarkus.reactive.executor.ReactiveExecutorRecorder;

public class BuildProcessor {
Copy link
Contributor

Choose a reason for hiding this comment

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

I must say I find using the same names like BuildProcessor in different extensions rather impractical. Having two BuildProcessor s open in an IDE makes it hard to figure out which editor tab belongs to which class.

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.

Add support for quarkus provided event loop
4 participants