Add rest and restapi to the list of discoverable factories
@@ -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/*");
+ }
}
