Skip to content

Commit

Permalink
chore(deprecate): json serialization no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Dec 13, 2019
1 parent af7332c commit 5f21a87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ public void setEnvironment(KnativeEnvironment environment) {
configuration.setEnvironment(environment);
}

@Deprecated
public boolean isJsonSerializationEnabled() {
return configuration.isJsonSerializationEnabled();
}

@Deprecated
public void setJsonSerializationEnabled(boolean jsonSerializationEnabled) {
configuration.setJsonSerializationEnabled(jsonSerializationEnabled);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -78,13 +79,15 @@ public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}

@Deprecated
public boolean isJsonSerializationEnabled() {
return jsonSerializationEnabled;
}

/**
* Enables automatic serialization to JSON of the produced events.
*/
@Deprecated
public void setJsonSerializationEnabled(boolean jsonSerializationEnabled) {
this.jsonSerializationEnabled = jsonSerializationEnabled;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/**
* Converts objects prior to serializing them to external endpoints or channels
*/
@Deprecated
public class KnativeConversionProcessor implements Processor {

private boolean enabled;
Expand Down

0 comments on commit 5f21a87

Please sign in to comment.