This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new f06b2fb Add rest and restapi to the list of discoverable factories #1287 f06b2fb is described below commit f06b2fb4a7a08b52903f08e07f8615381a9d2ab6 Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Mon Jun 1 12:26:07 2020 +0200 Add rest and restapi to the list of discoverable factories #1287 --- .../camel/quarkus/component/rest/deployment/RestProcessor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/rest/deployment/src/main/java/org/apache/camel/quarkus/component/rest/deployment/RestProcessor.java b/extensions/rest/deployment/src/main/java/org/apache/camel/quarkus/component/rest/deployment/RestProcessor.java index 4613961..6627c0a 100644 --- a/extensions/rest/deployment/src/main/java/org/apache/camel/quarkus/component/rest/deployment/RestProcessor.java +++ b/extensions/rest/deployment/src/main/java/org/apache/camel/quarkus/component/rest/deployment/RestProcessor.java @@ -18,6 +18,7 @@ package org.apache.camel.quarkus.component.rest.deployment; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import org.apache.camel.quarkus.core.deployment.spi.CamelServicePatternBuildItem; class RestProcessor { private static final String FEATURE = "camel-rest"; @@ -26,4 +27,13 @@ class RestProcessor { FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } + + @BuildStep + CamelServicePatternBuildItem restFactories() { + return new CamelServicePatternBuildItem( + CamelServicePatternBuildItem.CamelServiceDestination.DISCOVERY, + true, + "META-INF/services/org/apache/camel/rest/*", + "META-INF/services/org/apache/camel/restapi/*"); + } }