diff --git a/components-starter/camel-snakeyaml-starter/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java b/components-starter/camel-snakeyaml-starter/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java index ce78189895e43..588a5dab09220 100644 --- a/components-starter/camel-snakeyaml-starter/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java +++ b/components-starter/camel-snakeyaml-starter/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java @@ -16,8 +16,10 @@ */ package org.apache.camel.component.snakeyaml.springboot; +import java.util.List; import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat; import org.apache.camel.model.dataformat.YAMLLibrary; +import org.apache.camel.model.dataformat.YAMLTypeFilterDefinition; import org.springframework.boot.context.properties.ConfigurationProperties; /** @@ -61,6 +63,14 @@ public class SnakeYAMLDataFormatConfiguration { * style. */ private Boolean prettyFlow = false; + /** + * Allow any class to be un-marshaled + */ + private Boolean allowAnyType = false; + /** + * Set the types SnakeYAML is allowed to un-marshall + */ + private List typeFilter; public YAMLLibrary getLibrary() { return library; @@ -126,4 +136,20 @@ public Boolean getPrettyFlow() { public void setPrettyFlow(Boolean prettyFlow) { this.prettyFlow = prettyFlow; } + + public Boolean getAllowAnyType() { + return allowAnyType; + } + + public void setAllowAnyType(Boolean allowAnyType) { + this.allowAnyType = allowAnyType; + } + + public List getTypeFilter() { + return typeFilter; + } + + public void setTypeFilter(List typeFilter) { + this.typeFilter = typeFilter; + } } \ No newline at end of file