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-k-runtime.git


The following commit(s) were added to refs/heads/master by this push:
     new a38446e  Update to Camel RC1 #134
a38446e is described below

commit a38446e498fc81fb3dab4e5ce47c6b0f73bf13c0
Author: lburgazzoli <[email protected]>
AuthorDate: Tue Sep 3 00:25:59 2019 +0200

    Update to Camel RC1 #134
---
 .../groovy/dsl/ComponentConfiguration.groovy       | 14 ++++++-----
 .../k/loader/js/dsl/IntegrationConfiguration.java  |  2 +-
 .../camel/k/loader/js/dsl/ProcessorSupport.java    | 28 ++++++++++++++++++++++
 .../camel/k/loader/js/dsl/IntegrationTest.java     |  8 +++----
 .../src/test/resources/routes-with-processors.js   | 12 ++++++++--
 .../loader/knative/KnativeSourceRoutesLoader.java  |  4 ++--
 camel-k-loader-yaml/README.adoc                    |  2 +-
 .../camel/k/loader/yaml/parser/StepParser.java     |  8 +++----
 .../k/loader/yaml/parser/StepParserSupport.java    | 11 ++++++---
 .../apache/camel/k/support/PropertiesSupport.java  | 15 ++++++------
 .../org/apache/camel/k/support/RuntimeSupport.java | 17 +++++++------
 .../knative/http/KnativeHttpComponent.java         | 10 ++++----
 camel-knative/pom.xml                              |  2 +-
 .../camel/component/knative/KnativeComponent.java  | 22 +++++++++++------
 .../camel/component/knative/KnativeEndpoint.java   |  2 --
 .../component/knative/CloudEventsV01Test.java      |  4 ++--
 .../component/knative/CloudEventsV02Test.java      |  4 ++--
 .../component/knative/KnativeComponentTest.java    |  4 ++--
 pom.xml                                            |  2 +-
 .../maven/processors/CatalogProcessor3x.java       |  2 +-
 .../maven/processors/CatalogProcessor3Test.java    |  6 ++---
 21 files changed, 114 insertions(+), 65 deletions(-)

diff --git 
a/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentConfiguration.groovy
 
b/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentConfiguration.groovy
index d81d914..8380c60 100644
--- 
a/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentConfiguration.groovy
+++ 
b/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentConfiguration.groovy
@@ -16,8 +16,7 @@
  */
 package org.apache.camel.k.loader.groovy.dsl
 
-
-import org.apache.camel.support.IntrospectionSupport
+import org.apache.camel.ExtendedCamelContext
 import org.apache.camel.support.PropertyBindingSupport
 
 class ComponentConfiguration {
@@ -49,20 +48,23 @@ class ComponentConfiguration {
             }
         }
 
-        if (!PropertyBindingSupport.bindProperty(component.camelContext, 
component, name, value)) {
+        if 
(!PropertyBindingSupport.build().withCamelContext(component.camelContext).withTarget(component).withProperty(name,
 value).bind()) {
             throw new MissingMethodException(name, this.component.class, args 
as Object[])
         }
     }
 
     def propertyMissing(String name, value) {
-        if (!PropertyBindingSupport.bindProperty(component.camelContext, 
component, name, value,)) {
+        if 
(!PropertyBindingSupport.build().withCamelContext(component.camelContext).withTarget(component).withProperty(name,
 value).bind()) {
             throw new MissingMethodException(name, this.component.class, value)
         }
     }
 
     def propertyMissing(String name) {
-        def properties = IntrospectionSupport.getProperties(component, 
properties, null, false)
+        def props = new HashMap<String, Object>()
+        def context = 
component.getCamelContext().adapt(ExtendedCamelContext.class)
+
+        context.getBeanIntrospection().getProperties(component, props, null, 
false)
 
-        return properties[name]
+        return props[name]
     }
 }
diff --git 
a/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
index 11fee49..904170b 100644
--- 
a/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
+++ 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
@@ -30,7 +30,7 @@ import 
org.apache.camel.model.rest.RestConfigurationDefinition;
 import org.apache.camel.model.rest.RestDefinition;
 import org.apache.camel.spi.Registry;
 
-public class IntegrationConfiguration extends BuilderSupport implements 
EndpointBuilderFactory {
+public class IntegrationConfiguration extends BuilderSupport implements 
EndpointBuilderFactory, ProcessorSupport {
     public final Registry registry;
     public final Components components;
     public final EndpointRouteBuilder builder;
diff --git 
a/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/ProcessorSupport.java
 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/ProcessorSupport.java
new file mode 100644
index 0000000..a7127f1
--- /dev/null
+++ 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/ProcessorSupport.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.k.loader.js.dsl;
+
+import java.util.function.Consumer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+
+public interface ProcessorSupport {
+    default Processor processor(Consumer<Exchange> consumer) {
+        return e -> consumer.accept(e);
+    }
+}
\ No newline at end of file
diff --git 
a/camel-k-loader-js/src/test/java/org/apache/camel/k/loader/js/dsl/IntegrationTest.java
 
b/camel-k-loader-js/src/test/java/org/apache/camel/k/loader/js/dsl/IntegrationTest.java
index 3f55455..4e14a29 100644
--- 
a/camel-k-loader-js/src/test/java/org/apache/camel/k/loader/js/dsl/IntegrationTest.java
+++ 
b/camel-k-loader-js/src/test/java/org/apache/camel/k/loader/js/dsl/IntegrationTest.java
@@ -108,11 +108,9 @@ public class IntegrationTest {
         runtime.addListener(Runtime.Phase.Started, r -> {
             ProducerTemplate template = 
r.getCamelContext().createProducerTemplate();
 
-            String a = template.requestBody("direct:arrow", "", String.class);
-            assertThat(a).isEqualTo("arrow");
-
-            String f = template.requestBody("direct:function", "", 
String.class);
-            assertThat(f).isEqualTo("function");
+            assertThat(template.requestBody("direct:arrow", 
"")).isEqualTo("arrow");
+            assertThat(template.requestBody("direct:wrapper", 
"")).isEqualTo("wrapper");
+            assertThat(template.requestBody("direct:function", 
"")).isEqualTo("function");
 
             runtime.stop();
         });
diff --git a/camel-k-loader-js/src/test/resources/routes-with-processors.js 
b/camel-k-loader-js/src/test/resources/routes-with-processors.js
index 9d35147..a4fe408 100644
--- a/camel-k-loader-js/src/test/resources/routes-with-processors.js
+++ b/camel-k-loader-js/src/test/resources/routes-with-processors.js
@@ -1,7 +1,15 @@
+const Processor = Java.type("org.apache.camel.Processor");
+const p = Java.extend(Processor);
+const f = new p(function(e) { e.getMessage().setBody('function') });
+const a = new p(e => { e.getMessage().setBody('arrow') });
+const w = processor(e => { e.getMessage().setBody('wrapper') });
 
 from('direct:function')
-    .process(function(e) { e.getMessage().setBody('function') });
+    .process(f);
 
 from('direct:arrow')
-    .process(e => { e.getMessage().setBody('arrow') });
+    .process(a);
+
+from('direct:wrapper')
+    .process(w);
 
diff --git 
a/camel-k-loader-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceRoutesLoader.java
 
b/camel-k-loader-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceRoutesLoader.java
index dd7392c..be67dc9 100644
--- 
a/camel-k-loader-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceRoutesLoader.java
+++ 
b/camel-k-loader-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceRoutesLoader.java
@@ -20,8 +20,8 @@ import java.util.Arrays;
 import java.util.List;
 
 import org.apache.camel.CamelContext;
+import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.impl.engine.AbstractCamelContext;
 import org.apache.camel.k.RoutesLoader;
 import org.apache.camel.k.Source;
 import org.apache.camel.k.support.RuntimeSupport;
@@ -90,7 +90,7 @@ public class KnativeSourceRoutesLoader implements 
RoutesLoader {
                 //      to be registered to the camel registry but as the
                 //      original builder is masked by this wrapping builder,
                 //      beans can't be automatically discovered
-                context.adapt(AbstractCamelContext.class)
+                context.adapt(ExtendedCamelContext.class)
                     .getBeanPostProcessor()
                     .postProcessBeforeInitialization(builder, 
builder.getClass().getName());
 
diff --git a/camel-k-loader-yaml/README.adoc b/camel-k-loader-yaml/README.adoc
index 587dcda..1ee9b30 100644
--- a/camel-k-loader-yaml/README.adoc
+++ b/camel-k-loader-yaml/README.adoc
@@ -172,7 +172,7 @@ import 
org.apache.camel.k.loader.yaml.parser.ProcessorStepParser;public class Ac
 
         // create the definition
         ToDefinition to = new ToDefinition()
-        to.setUri(String.format("http4://%s:%d/fixed/path"), definition.host, 
definition.port)
+        to.setUri(String.format("http://%s:%d/fixed/path";), definition.host, 
definition.port)
 
         return to;
     }
diff --git 
a/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParser.java
 
b/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParser.java
index 8988805..1deeb25 100644
--- 
a/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParser.java
+++ 
b/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParser.java
@@ -32,10 +32,10 @@ public interface StepParser {
     static <T extends StepParser> T lookup(CamelContext camelContext, Class<T> 
type, String stepId) throws NoFactoryAvailableException {
         T converter = camelContext.getRegistry().lookupByNameAndType(stepId, 
type);
         if (converter == null) {
-            converter = (T) 
camelContext.adapt(ExtendedCamelContext.class).getFactoryFinder(RESOURCE_PATH).newInstance(stepId);
-        }
-        if (converter == null) {
-            throw new IllegalStateException("No handler for step with id: " + 
stepId);
+            converter = camelContext.adapt(ExtendedCamelContext.class)
+                .getFactoryFinder(RESOURCE_PATH)
+                .newInstance(stepId, type)
+                .orElseThrow(() -> new RuntimeException("No handler for step 
with id: " + stepId));
         }
 
         return converter;
diff --git 
a/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParserSupport.java
 
b/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParserSupport.java
index 7f5387a..38f395a 100644
--- 
a/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParserSupport.java
+++ 
b/camel-k-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/parser/StepParserSupport.java
@@ -16,15 +16,17 @@
  */
 package org.apache.camel.k.loader.yaml.parser;
 
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
 
 import org.apache.camel.CamelContext;
+import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.k.loader.yaml.model.Step;
 import org.apache.camel.model.OutputNode;
 import org.apache.camel.model.ProcessorDefinition;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.spi.BeanIntrospection;
 import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.util.ObjectHelper;
 
@@ -51,9 +53,12 @@ public final class StepParserSupport {
         }
 
         final T answer = context.getInjector().newInstance(type);
-        final Map<String, Object> properties = 
IntrospectionSupport.getNonNullProperties(instance);
+        final Map<String, Object> properties = new HashMap<>();
+        final BeanIntrospection introspection = 
context.adapt(ExtendedCamelContext.class).getBeanIntrospection();
 
-        PropertyBindingSupport.bindProperties(context, answer, properties);
+        if (introspection.getProperties(instance, properties, null, false)) {
+            
PropertyBindingSupport.build().withCamelContext(context).withTarget(answer).withProperties(properties).bind();
+        }
 
         return answer;
     }
diff --git 
a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/PropertiesSupport.java
 
b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/PropertiesSupport.java
index 81ecf28..80427cb 100644
--- 
a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/PropertiesSupport.java
+++ 
b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/PropertiesSupport.java
@@ -25,7 +25,6 @@ import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.nio.file.SimpleFileVisitor;
 import java.nio.file.attribute.BasicFileAttributes;
-import java.util.HashMap;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Properties;
@@ -41,6 +40,7 @@ public final class PropertiesSupport {
     private PropertiesSupport() {
     }
 
+    @SuppressWarnings("unchecked")
     public static boolean bindProperties(CamelContext context, Object target, 
String prefix) {
         final PropertiesComponent component = 
context.getComponent("properties", PropertiesComponent.class);
         final Properties properties = component.loadProperties();
@@ -49,12 +49,13 @@ public final class PropertiesSupport {
             return false;
         }
 
-        Map<String, Object> props = new HashMap<>();
-        for (String key : properties.stringPropertyNames()) {
-            props.put(key, properties.get(key));
-        }
-
-        return PropertyBindingSupport.bindProperties(context, target, props, 
prefix);
+        return PropertyBindingSupport.build()
+            .withCamelContext(context)
+            .withTarget(target)
+            .withProperties((Map)properties)
+            .withOptionPrefix(prefix)
+            .withRemoveParameters(false)
+            .bind();
     }
 
     public static Properties loadProperties() {
diff --git 
a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
 
b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
index 796b96e..e9ded83 100644
--- 
a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
+++ 
b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
@@ -34,7 +34,6 @@ import org.apache.camel.k.Constants;
 import org.apache.camel.k.ContextCustomizer;
 import org.apache.camel.k.RoutesLoader;
 import org.apache.camel.k.Source;
-import org.apache.camel.spi.FactoryFinder;
 import org.apache.camel.util.ObjectHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -114,7 +113,10 @@ public final class RuntimeSupport {
         ContextCustomizer customizer = 
context.getRegistry().lookupByNameAndType(customizerId, 
ContextCustomizer.class);
         if (customizer == null) {
             try {
-                customizer = (ContextCustomizer) 
context.adapt(ExtendedCamelContext.class).getFactoryFinder(Constants.CONTEXT_CUSTOMIZER_RESOURCE_PATH).newInstance(customizerId);
+                customizer = context.adapt(ExtendedCamelContext.class)
+                    
.getFactoryFinder(Constants.CONTEXT_CUSTOMIZER_RESOURCE_PATH)
+                    .newInstance(customizerId, ContextCustomizer.class)
+                    .orElseThrow(() -> new RuntimeException("Error creating 
instance for customizer: " + customizerId));
             } catch (NoFactoryAvailableException e) {
                 throw new RuntimeException(e);
             }
@@ -177,16 +179,13 @@ public final class RuntimeSupport {
     }
 
     public static RoutesLoader lookupLoaderFromResource(CamelContext context, 
String loaderId) {
-        final FactoryFinder finder;
-        final RoutesLoader loader;
-
         try {
-            finder = 
context.adapt(ExtendedCamelContext.class).getFactoryFinder(Constants.ROUTES_LOADER_RESOURCE_PATH);
-            loader = (RoutesLoader)finder.newInstance(loaderId);
+            return context.adapt(ExtendedCamelContext.class)
+                .getFactoryFinder(Constants.ROUTES_LOADER_RESOURCE_PATH)
+                .newInstance(loaderId, RoutesLoader.class)
+                .orElseThrow(() -> new RuntimeException("Error creating 
instance of loader: " + loaderId));
         } catch (NoFactoryAvailableException e) {
             throw new IllegalArgumentException("Unable to find loader for: " + 
loaderId, e);
         }
-
-        return loader;
     }
 }
diff --git 
a/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java
 
b/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java
index 24edb27..c03e6b8 100644
--- 
a/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java
+++ 
b/camel-knative-http/src/main/java/org/apache/camel/component/knative/http/KnativeHttpComponent.java
@@ -24,6 +24,8 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.regex.Matcher;
 
+import static java.lang.Integer.*;
+
 import io.vertx.core.Vertx;
 import io.vertx.core.VertxOptions;
 import io.vertx.core.http.HttpServerOptions;
@@ -32,8 +34,8 @@ import org.apache.camel.Endpoint;
 import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.annotations.Component;
 import org.apache.camel.support.DefaultComponent;
-import org.apache.camel.support.IntrospectionSupport;
 import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.PropertiesHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -135,7 +137,7 @@ public class KnativeHttpComponent extends DefaultComponent {
         }
 
         KnativeHttpEndpoint ep = new KnativeHttpEndpoint(uri, this);
-        ep.setHeaderFilter(IntrospectionSupport.extractProperties(parameters, 
"filter.", true));
+        ep.setHeaderFilter(PropertiesHelper.extractProperties(parameters, 
"filter.", true));
 
         switch (matcher.groupCount()) {
         case 1:
@@ -145,12 +147,12 @@ public class KnativeHttpComponent extends 
DefaultComponent {
             break;
         case 2:
             ep.setHost(matcher.group(1));
-            ep.setPort(Integer.parseInt(matcher.group(2)));
+            ep.setPort(parseInt(matcher.group(2)));
             ep.setPath(KnativeHttp.DEFAULT_PATH);
             break;
         case 3:
             ep.setHost(matcher.group(1));
-            ep.setPort(Integer.parseInt(matcher.group(2)));
+            ep.setPort(parseInt(matcher.group(2)));
             ep.setPath(KnativeHttp.DEFAULT_PATH + matcher.group(3));
             break;
         default:
diff --git a/camel-knative/pom.xml b/camel-knative/pom.xml
index 4b3c2c1..462f63a 100644
--- a/camel-knative/pom.xml
+++ b/camel-knative/pom.xml
@@ -107,7 +107,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
-            <artifactId>camel-http4</artifactId>
+            <artifactId>camel-http</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git 
a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
 
b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
index fa2405d..145ca9b 100644
--- 
a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
+++ 
b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
@@ -23,15 +23,16 @@ import org.apache.camel.CamelContext;
 import org.apache.camel.Endpoint;
 import org.apache.camel.spi.annotations.Component;
 import org.apache.camel.support.DefaultComponent;
-import org.apache.camel.support.IntrospectionSupport;
 import org.apache.camel.support.PropertyBindingSupport;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.PropertiesHelper;
 import org.apache.camel.util.StringHelper;
 
 @Component("knative")
 public class KnativeComponent extends DefaultComponent {
     public static final String CONFIGURATION_ENV_VARIABLE = 
"CAMEL_KNATIVE_CONFIGURATION";
 
-    private final KnativeConfiguration configuration;
+    private KnativeConfiguration configuration;
     private String environmentPath;
 
     public KnativeComponent() {
@@ -50,6 +51,17 @@ public class KnativeComponent extends DefaultComponent {
     //
     // ************************
 
+    public KnativeConfiguration getConfiguration() {
+        return configuration;
+    }
+
+    /**
+     * Set the configuration.
+     */
+    public void setConfiguration(KnativeConfiguration configuration) {
+        this.configuration = ObjectHelper.notNull(configuration, 
"configuration");
+    }
+
     public String getEnvironmentPath() {
         return environmentPath;
     }
@@ -61,10 +73,6 @@ public class KnativeComponent extends DefaultComponent {
         this.environmentPath = environmentPath;
     }
 
-    public KnativeConfiguration getConfiguration() {
-        return configuration;
-    }
-
     public KnativeEnvironment getEnvironment() {
         return configuration.getEnvironment();
     }
@@ -116,7 +124,7 @@ public class KnativeComponent extends DefaultComponent {
         final KnativeConfiguration conf = getKnativeConfiguration();
 
         conf.getTransportOptions().putAll(
-            IntrospectionSupport.extractProperties(parameters, "transport.", 
true)
+            PropertiesHelper.extractProperties(parameters, "transport.", true)
         );
 
         // set properties from the endpoint uri
diff --git 
a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEndpoint.java
 
b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEndpoint.java
index 31db9ee..7fd6ee2 100644
--- 
a/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEndpoint.java
+++ 
b/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEndpoint.java
@@ -30,7 +30,6 @@ import org.apache.camel.cloud.ServiceDefinition;
 import org.apache.camel.component.knative.ce.CloudEventsProcessors;
 import org.apache.camel.processor.Pipeline;
 import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
 import org.apache.camel.support.DefaultEndpoint;
 import org.apache.camel.support.service.ServiceHelper;
@@ -52,7 +51,6 @@ public class KnativeEndpoint extends DefaultEndpoint 
implements DelegateEndpoint
     @UriPath(description = "The Knative name")
     private final String name;
 
-    @UriParam
     private final KnativeConfiguration configuration;
 
     private final KnativeEnvironment environment;
diff --git 
a/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV01Test.java
 
b/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV01Test.java
index cb17060..9b3eadf 100644
--- 
a/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV01Test.java
+++ 
b/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV01Test.java
@@ -294,7 +294,7 @@ public class CloudEventsV01Test {
                     .to("mock:ce");
 
                 from("direct:source")
-                    .toF("http4://localhost:%d/a/path", port);
+                    .toF("http://localhost:%d/a/path";, port);
             }
         });
 
@@ -380,7 +380,7 @@ public class CloudEventsV01Test {
                         .constant("POST")
                     .setHeader(Exchange.HTTP_QUERY)
                         
.simple("filter.headerName=CE-Source&filter.headerValue=${header.FilterVal}")
-                    .toD("http4://localhost:" + port);
+                    .toD("http://localhost:"; + port);
             }
         });
 
diff --git 
a/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV02Test.java
 
b/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV02Test.java
index f0d9607..110bc96 100644
--- 
a/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV02Test.java
+++ 
b/camel-knative/src/test/java/org/apache/camel/component/knative/CloudEventsV02Test.java
@@ -294,7 +294,7 @@ public class CloudEventsV02Test {
                     .to("mock:ce");
 
                 from("direct:source")
-                    .toF("http4://localhost:%d/a/path", port);
+                    .toF("http://localhost:%d/a/path";, port);
             }
         });
 
@@ -380,7 +380,7 @@ public class CloudEventsV02Test {
                         .constant("POST")
                     .setHeader(Exchange.HTTP_QUERY)
                         
.simple("filter.headerName=ce-source&filter.headerValue=${header.FilterVal}")
-                    .toD("http4://localhost:" + port);
+                    .toD("http://localhost:"; + port);
             }
         });
 
diff --git 
a/camel-knative/src/test/java/org/apache/camel/component/knative/KnativeComponentTest.java
 
b/camel-knative/src/test/java/org/apache/camel/component/knative/KnativeComponentTest.java
index e704a85..0c86db1 100644
--- 
a/camel-knative/src/test/java/org/apache/camel/component/knative/KnativeComponentTest.java
+++ 
b/camel-knative/src/test/java/org/apache/camel/component/knative/KnativeComponentTest.java
@@ -454,7 +454,7 @@ public class KnativeComponentTest {
                     .to("mock:ce");
 
                 from("direct:source")
-                    .toF("http4://localhost:%d/a/path", port);
+                    .toF("http://localhost:%d/a/path";, port);
             }
         });
 
@@ -540,7 +540,7 @@ public class KnativeComponentTest {
                         .constant("POST")
                     .setHeader(Exchange.HTTP_QUERY)
                         .simple("filter.CE-Source=${header.FilterVal}")
-                    .toD("http4://localhost:" + port);
+                    .toD("http://localhost:"; + port);
             }
         });
 
diff --git a/pom.xml b/pom.xml
index 1ffbbc8..d9bf9c9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
-        <camel.version>3.0.0-M4</camel.version>
+        <camel.version>3.0.0-RC1</camel.version>
         <catalog.version>${camel.version}</catalog.version>
         <junit.version>5.5.1</junit.version>
         <joor.version>0.9.12</joor.version>
diff --git 
a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java
 
b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java
index 9e83a10..7104673 100644
--- 
a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java
+++ 
b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java
@@ -335,7 +335,7 @@ public class CatalogProcessor3x implements CatalogProcessor 
{
         //
         // ************************
 
-        artifacts.computeIfPresent("camel-http4", (key, artifact) -> {
+        artifacts.computeIfPresent("camel-http", (key, artifact) -> {
             artifact.addDependency("org.apache.camel", "camel-file");
             return artifact;
         });
diff --git 
a/tooling/camel-k-maven-plugin/src/test/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3Test.java
 
b/tooling/camel-k-maven-plugin/src/test/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3Test.java
index daa06a2..aec3841 100644
--- 
a/tooling/camel-k-maven-plugin/src/test/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3Test.java
+++ 
b/tooling/camel-k-maven-plugin/src/test/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3Test.java
@@ -78,7 +78,7 @@ public class CatalogProcessor3Test extends 
AbstractCataloProcessorTest {
         CatalogProcessor processor = new CatalogProcessor3x();
         CamelCatalog catalog = versionCamelCatalog("3.0.0");
         Map<String, CamelArtifact> artifactMap = new HashMap<>();
-        artifactMap.put("camel-http4", new CamelArtifact());
+        artifactMap.put("camel-http", new CamelArtifact());
 
         assertThat(processor.accepts(catalog)).isTrue();
         processor.process(new MavenProject(), catalog, artifactMap);
@@ -121,7 +121,7 @@ public class CatalogProcessor3Test extends 
AbstractCataloProcessorTest {
             );
         });
 
-        assertThat(artifactMap.get("camel-http4")).satisfies(a -> {
+        assertThat(artifactMap.get("camel-http")).satisfies(a -> {
             assertThat(a.getDependencies()).anyMatch(
                 d -> d.getGroupId().equals("org.apache.camel") && 
d.getArtifactId().equals("camel-file")
             );
@@ -133,7 +133,7 @@ public class CatalogProcessor3Test extends 
AbstractCataloProcessorTest {
         CatalogProcessor processor = new CatalogProcessor3x();
         CamelCatalog catalog = versionCamelCatalog("3.0.0");
         Map<String, CamelArtifact> artifactMap = new HashMap<>();
-        artifactMap.put("camel-http4", new CamelArtifact());
+        artifactMap.put("camel-http", new CamelArtifact());
 
         assertThat(processor.accepts(catalog)).isTrue();
         processor.process(new MavenProject(), catalog, artifactMap);

Reply via email to