Skip to content

Commit

Permalink
Allow parsing whole ConfigProperties map
Browse files Browse the repository at this point in the history
  • Loading branch information
obabec committed Feb 18, 2024
1 parent 7d7b039 commit 2361d07
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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;
import io.debezium.operator.docs.annotations.Documented;
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 2361d07

Please sign in to comment.