Skip to content

Conversation

FroMage
Copy link
Member

@FroMage FroMage commented Jan 30, 2019

Part of the fixes you gave me, unrelated to Panache

Copy link
Contributor

Choose a reason for hiding this comment

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

This one is fixed in #674

Copy link
Contributor

Choose a reason for hiding this comment

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

I think in this particular case we should rather modify org.jboss.shamrock.vertx.VertxProcessor.registerBean() to use unremovable additional bean, just like this: new AdditionalBeanBuildItem(false, VertxProducer.class).

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps. ATM I'm using the unremovable bean step in the project that uses VertxProducer using programmatic injection. On the basis that it's a injector-project problem rather than a producer-project problem, but perhaps that's wrong? What should be our policy?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not quite sure. But in this particular case if there is no bean injecting VertxProducer or Vertx then vertx does not even start which is IMHO not the intention.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, good point. Here the extension should just start vertx regardless of whether it's injected. If you don't want it, you don't depend on it. OTOH is it the case of other extensions? Is Hibernate or JAX-RS started if I depend on it but have no entity or rest resource?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is Hibernate or JAX-RS started if I depend on it but have no entity or rest resource?

I think that JAX-RS does not start: https://github.com/jbossas/protean-shamrock/blob/master/extensions/jaxrs/deployment/src/main/java/org/jboss/shamrock/jaxrs/JaxrsScanningProcessor.java#L356

I'm not sure about hibernate though.

@mkouba
Copy link
Contributor

mkouba commented Feb 5, 2019

Closing - these problems are addressed in #674 and #753.

@mkouba mkouba closed this Feb 5, 2019
@cescoffier cescoffier deleted the arc-npe-fixes branch February 14, 2019 08:48
@cescoffier cescoffier added the triage/wontfix This will not be worked on label Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage/wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants