You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/12/13 18:04:58 UTC
[camel-k-runtime] 01/04: chore(deprecate): json serialization no
longer used
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
commit 3ab1f05e513d5e9857de8facc66ed1cca0f4714d
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Fri Dec 13 10:10:45 2019 +0100
chore(deprecate): json serialization no longer used
---
.../main/java/org/apache/camel/component/knative/KnativeComponent.java | 2 ++
.../java/org/apache/camel/component/knative/KnativeConfiguration.java | 3 +++
.../org/apache/camel/component/knative/KnativeConversionProcessor.java | 1 +
3 files changed, 6 insertions(+)
diff --git a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
index 8a2329a..987ca63 100644
--- a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
+++ b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeComponent.java
@@ -103,10 +103,12 @@ public class KnativeComponent extends DefaultComponent {
configuration.setEnvironment(environment);
}
+ @Deprecated
public boolean isJsonSerializationEnabled() {
return configuration.isJsonSerializationEnabled();
}
+ @Deprecated
public void setJsonSerializationEnabled(boolean jsonSerializationEnabled) {
configuration.setJsonSerializationEnabled(jsonSerializationEnabled);
}
diff --git a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConfiguration.java b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConfiguration.java
index eb93fb7..3911f85 100644
--- a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConfiguration.java
+++ b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConfiguration.java
@@ -31,6 +31,7 @@ public class KnativeConfiguration implements Cloneable {
@UriParam
private String serviceName;
@UriParam(defaultValue = "false")
+ @Deprecated
private boolean jsonSerializationEnabled;
@UriParam(defaultValue = "0.3", enums = "0.1,0.2,0.3")
private String cloudEventsSpecVersion = CloudEvents.V03.version();
@@ -78,6 +79,7 @@ public class KnativeConfiguration implements Cloneable {
this.serviceName = serviceName;
}
+ @Deprecated
public boolean isJsonSerializationEnabled() {
return jsonSerializationEnabled;
}
@@ -85,6 +87,7 @@ public class KnativeConfiguration implements Cloneable {
/**
* Enables automatic serialization to JSON of the produced events.
*/
+ @Deprecated
public void setJsonSerializationEnabled(boolean jsonSerializationEnabled) {
this.jsonSerializationEnabled = jsonSerializationEnabled;
}
diff --git a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConversionProcessor.java b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConversionProcessor.java
index 6573820..433fa9e 100644
--- a/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConversionProcessor.java
+++ b/camel-knative/camel-knative/src/main/java/org/apache/camel/component/knative/KnativeConversionProcessor.java
@@ -23,6 +23,7 @@ import org.apache.camel.component.knative.spi.Knative;
/**
* Converts objects prior to serializing them to external endpoints or channels
*/
+@Deprecated
public class KnativeConversionProcessor implements Processor {
private boolean enabled;