Skip to content

Commit

Permalink
DBZ-7503 Allow parsing whole ConfigProperties map
Browse files Browse the repository at this point in the history
  • Loading branch information
obabec authored and Ondrej Babec committed Feb 18, 2024
1 parent 7d7b039 commit 0990a5f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.debezium.operator.api.config.ConfigMappable;
import io.debezium.operator.api.config.ConfigMapping;
Expand All @@ -25,6 +26,11 @@ public Map<String, Object> getProps() {
return props;
}

@JsonIgnore
public void setAllProps(Map<String, Object> props) {
this.props.putAll(props);
}

@JsonAnySetter
public void setProps(String name, Object value) {
getProps().put(name, value);
Expand Down

0 comments on commit 0990a5f

Please sign in to comment.