This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch df2 in repository https://gitbox.apache.org/repos/asf/camel.git
commit b458fa6da2a006b87f1d41bfa9725e82ddc414d3 Author: Claus Ibsen <[email protected]> AuthorDate: Mon Aug 18 15:39:24 2025 +0200 CAMEL-22354: dataformats - Align all data formats getter setters to model --- .../camel/component/fory/ForyDataFormatConfigurer.java | 7 +++++++ .../java/org/apache/camel/component/fory/ForyDataFormat.java | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java b/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java index 1ce38778afc..be9c7166b27 100644 --- a/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java +++ b/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java @@ -22,6 +22,7 @@ public class ForyDataFormatConfigurer extends org.apache.camel.support.component private static final Map<String, Object> ALL_OPTIONS; static { Map<String, Object> map = new CaseInsensitiveMap(); + map.put("AllowAutoWiredFory", boolean.class); map.put("RequireClassRegistration", boolean.class); map.put("ThreadSafe", boolean.class); map.put("UnmarshalType", java.lang.Class.class); @@ -32,6 +33,8 @@ public class ForyDataFormatConfigurer extends org.apache.camel.support.component public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { ForyDataFormat target = (ForyDataFormat) obj; switch (ignoreCase ? name.toLowerCase() : name) { + case "allowautowiredfory": + case "allowAutoWiredFory": target.setAllowAutoWiredFory(property(camelContext, boolean.class, value)); return true; case "requireclassregistration": case "requireClassRegistration": target.setRequireClassRegistration(property(camelContext, boolean.class, value)); return true; case "threadsafe": @@ -50,6 +53,8 @@ public class ForyDataFormatConfigurer extends org.apache.camel.support.component @Override public Class<?> getOptionType(String name, boolean ignoreCase) { switch (ignoreCase ? name.toLowerCase() : name) { + case "allowautowiredfory": + case "allowAutoWiredFory": return boolean.class; case "requireclassregistration": case "requireClassRegistration": return boolean.class; case "threadsafe": @@ -64,6 +69,8 @@ public class ForyDataFormatConfigurer extends org.apache.camel.support.component public Object getOptionValue(Object obj, String name, boolean ignoreCase) { ForyDataFormat target = (ForyDataFormat) obj; switch (ignoreCase ? name.toLowerCase() : name) { + case "allowautowiredfory": + case "allowAutoWiredFory": return target.isAllowAutoWiredFory(); case "requireclassregistration": case "requireClassRegistration": return target.isRequireClassRegistration(); case "threadsafe": diff --git a/components/camel-fory/src/main/java/org/apache/camel/component/fory/ForyDataFormat.java b/components/camel-fory/src/main/java/org/apache/camel/component/fory/ForyDataFormat.java index ded4ad1299d..701bb273b6e 100644 --- a/components/camel-fory/src/main/java/org/apache/camel/component/fory/ForyDataFormat.java +++ b/components/camel-fory/src/main/java/org/apache/camel/component/fory/ForyDataFormat.java @@ -44,7 +44,7 @@ public class ForyDataFormat extends ServiceSupport implements DataFormat, DataFo private String unmarshalTypeName; private boolean requireClassRegistration = true; private boolean threadSafe = true; - private boolean allowAutoWiredFury = true; + private boolean allowAutoWiredFory = true; private BaseFory fory; public ForyDataFormat() { @@ -86,7 +86,7 @@ public class ForyDataFormat extends ServiceSupport implements DataFormat, DataFo unmarshalType = camelContext.getClassResolver().resolveClass(unmarshalTypeName); } - if (fory == null && isAllowAutoWiredFury()) { + if (fory == null && isAllowAutoWiredFory()) { fory = getCamelContext().getRegistry().findSingleByType(BaseFory.class); } @@ -144,11 +144,11 @@ public class ForyDataFormat extends ServiceSupport implements DataFormat, DataFo this.threadSafe = threadSafe; } - public boolean isAllowAutoWiredFury() { - return allowAutoWiredFury; + public boolean isAllowAutoWiredFory() { + return allowAutoWiredFory; } - public void setAllowAutoWiredFury(boolean allowAutoWiredFury) { - this.allowAutoWiredFury = allowAutoWiredFury; + public void setAllowAutoWiredFory(boolean allowAutoWiredFory) { + this.allowAutoWiredFory = allowAutoWiredFory; } }
