You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/06/10 11:02:47 UTC
[8/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
CAMEL-10041: Generate spring-boot auto configuration for all Camel data formats that has options that can be configured.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d76f047d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d76f047d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d76f047d
Branch: refs/heads/master
Commit: d76f047d6f89b70b19dcbd90fc016c7a039cda59
Parents: 234f57d
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Jun 10 13:01:25 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Jun 10 13:01:25 2016 +0200
----------------------------------------------------------------------
.../GzipDataFormatAutoConfiguration.java | 54 ++++
.../springboot/GzipDataFormatConfiguration.java | 28 ++
...erializationDataFormatAutoConfiguration.java | 56 ++++
.../SerializationDataFormatConfiguration.java | 28 ++
.../StringDataFormatAutoConfiguration.java | 55 ++++
.../StringDataFormatConfiguration.java | 42 +++
.../ZipDataFormatAutoConfiguration.java | 54 ++++
.../springboot/ZipDataFormatConfiguration.java | 42 +++
.../AvroDataFormatAutoConfiguration.java | 54 ++++
.../springboot/AvroDataFormatConfiguration.java | 41 +++
.../BarcodeDataFormatAutoConfiguration.java | 55 ++++
.../BarcodeDataFormatConfiguration.java | 77 +++++
.../Base64DataFormatAutoConfiguration.java | 55 ++++
.../Base64DataFormatConfiguration.java | 68 ++++
.../BeanIODataFormatAutoConfiguration.java | 55 ++++
.../BeanIODataFormatConfiguration.java | 103 ++++++
.../BindyCsvDataFormatAutoConfiguration.java | 55 ++++
.../BindyCsvDataFormatConfiguration.java | 67 ++++
...yFixedLengthDataFormatAutoConfiguration.java | 56 ++++
...BindyFixedLengthDataFormatConfiguration.java | 67 ++++
...KeyValuePairDataFormatAutoConfiguration.java | 56 ++++
...indyKeyValuePairDataFormatConfiguration.java | 67 ++++
.../BoonDataFormatAutoConfiguration.java | 54 ++++
.../springboot/BoonDataFormatConfiguration.java | 53 ++++
.../CastorDataFormatAutoConfiguration.java | 55 ++++
.../CastorDataFormatConfiguration.java | 89 ++++++
.../CryptoDataFormatAutoConfiguration.java | 55 ++++
.../CryptoDataFormatConfiguration.java | 143 +++++++++
.../PGPDataFormatAutoConfiguration.java | 54 ++++
.../springboot/PGPDataFormatConfiguration.java | 235 ++++++++++++++
.../CsvDataFormatAutoConfiguration.java | 54 ++++
.../springboot/CsvDataFormatConfiguration.java | 310 +++++++++++++++++++
.../FlatpackDataFormatAutoConfiguration.java | 55 ++++
.../FlatpackDataFormatConfiguration.java | 129 ++++++++
.../GsonDataFormatAutoConfiguration.java | 54 ++++
.../springboot/GsonDataFormatConfiguration.java | 244 +++++++++++++++
.../HessianDataFormatAutoConfiguration.java | 55 ++++
.../HessianDataFormatConfiguration.java | 28 ++
.../HL7DataFormatAutoConfiguration.java | 54 ++++
.../springboot/HL7DataFormatConfiguration.java | 41 +++
.../ICalDataFormatAutoConfiguration.java | 54 ++++
.../springboot/ICalDataFormatConfiguration.java | 41 +++
.../JacksonDataFormatAutoConfiguration.java | 55 ++++
.../JacksonDataFormatConfiguration.java | 244 +++++++++++++++
.../JacksonXMLDataFormatAutoConfiguration.java | 55 ++++
.../JacksonXMLDataFormatConfiguration.java | 208 +++++++++++++
.../JaxbDataFormatAutoConfiguration.java | 54 ++++
.../springboot/JaxbDataFormatConfiguration.java | 227 ++++++++++++++
.../JibxDataFormatAutoConfiguration.java | 54 ++++
.../springboot/JibxDataFormatConfiguration.java | 53 ++++
.../LZFDataFormatAutoConfiguration.java | 54 ++++
.../springboot/LZFDataFormatConfiguration.java | 41 +++
...imeMultipartDataFormatAutoConfiguration.java | 56 ++++
.../MimeMultipartDataFormatConfiguration.java | 94 ++++++
.../ProtobufDataFormatAutoConfiguration.java | 55 ++++
.../ProtobufDataFormatConfiguration.java | 41 +++
.../RssDataFormatAutoConfiguration.java | 54 ++++
.../springboot/RssDataFormatConfiguration.java | 28 ++
.../SnakeYAMLDataFormatAutoConfiguration.java | 55 ++++
.../SnakeYAMLDataFormatConfiguration.java | 128 ++++++++
.../SoapJaxbDataFormatAutoConfiguration.java | 55 ++++
.../SoapJaxbDataFormatConfiguration.java | 122 ++++++++
.../SyslogDataFormatAutoConfiguration.java | 55 ++++
.../SyslogDataFormatConfiguration.java | 28 ++
.../TidyMarkupDataFormatAutoConfiguration.java | 55 ++++
.../TidyMarkupDataFormatConfiguration.java | 42 +++
.../TarFileDataFormatAutoConfiguration.java | 55 ++++
.../TarFileDataFormatConfiguration.java | 43 +++
...UniVocityCsvDataFormatAutoConfiguration.java | 55 ++++
.../UniVocityCsvDataFormatConfiguration.java | 243 +++++++++++++++
...tyFixedWidthDataFormatAutoConfiguration.java | 56 ++++
...VocityFixedWidthDataFormatConfiguration.java | 233 ++++++++++++++
...UniVocityTsvDataFormatAutoConfiguration.java | 55 ++++
.../UniVocityTsvDataFormatConfiguration.java | 207 +++++++++++++
.../XmlJsonDataFormatAutoConfiguration.java | 55 ++++
.../XmlJsonDataFormatConfiguration.java | 201 ++++++++++++
.../XmlRpcDataFormatAutoConfiguration.java | 55 ++++
.../XmlRpcDataFormatConfiguration.java | 41 +++
.../XMLSecurityDataFormatAutoConfiguration.java | 55 ++++
.../XMLSecurityDataFormatConfiguration.java | 189 +++++++++++
.../JsonDataFormatAutoConfiguration.java | 54 ++++
.../springboot/JsonDataFormatConfiguration.java | 244 +++++++++++++++
.../XStreamDataFormatAutoConfiguration.java | 55 ++++
.../XStreamDataFormatConfiguration.java | 159 ++++++++++
.../ZipFileDataFormatAutoConfiguration.java | 55 ++++
.../ZipFileDataFormatConfiguration.java | 43 +++
86 files changed, 7158 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..90e9cd0
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatAutoConfiguration.java
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.impl.GzipDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(GzipDataFormatConfiguration.class)
+public class GzipDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(GzipDataFormat.class)
+ public GzipDataFormat configureGzipDataFormat(CamelContext camelContext,
+ GzipDataFormatConfiguration configuration) throws Exception {
+ GzipDataFormat dataformat = new GzipDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatConfiguration.java
new file mode 100644
index 0000000..df614d4
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatConfiguration.java
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * The Core Camel Java DSL based router
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.gzip")
+public class GzipDataFormatConfiguration {
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..7bf60fd
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatAutoConfiguration.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.impl.SerializationDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(SerializationDataFormatConfiguration.class)
+public class SerializationDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(SerializationDataFormat.class)
+ public SerializationDataFormat configureSerializationDataFormat(
+ CamelContext camelContext,
+ SerializationDataFormatConfiguration configuration)
+ throws Exception {
+ SerializationDataFormat dataformat = new SerializationDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatConfiguration.java
new file mode 100644
index 0000000..ed78fab
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatConfiguration.java
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * The Core Camel Java DSL based router
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.serialization")
+public class SerializationDataFormatConfiguration {
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..a47e939
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.impl.StringDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(StringDataFormatConfiguration.class)
+public class StringDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(StringDataFormat.class)
+ public StringDataFormat configureStringDataFormat(
+ CamelContext camelContext,
+ StringDataFormatConfiguration configuration) throws Exception {
+ StringDataFormat dataformat = new StringDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatConfiguration.java
new file mode 100644
index 0000000..575b37e
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatConfiguration.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * The Core Camel Java DSL based router
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.string")
+public class StringDataFormatConfiguration {
+
+ /**
+ * Sets an encoding to use. Will by default use the JVM platform default
+ * charset.
+ */
+ private String charset;
+
+ public String getCharset() {
+ return charset;
+ }
+
+ public void setCharset(String charset) {
+ this.charset = charset;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..c007de0
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatAutoConfiguration.java
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.impl.ZipDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(ZipDataFormatConfiguration.class)
+public class ZipDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(ZipDataFormat.class)
+ public ZipDataFormat configureZipDataFormat(CamelContext camelContext,
+ ZipDataFormatConfiguration configuration) throws Exception {
+ ZipDataFormat dataformat = new ZipDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java
new file mode 100644
index 0000000..d6bd3be
--- /dev/null
+++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.impl.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * The Core Camel Java DSL based router
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.zip")
+public class ZipDataFormatConfiguration {
+
+ /**
+ * To specify a specific compression between 0-9. -1 is default compression
+ * 0 is no compression and 9 is best compression.
+ */
+ private Integer compressionLevel;
+
+ public Integer getCompressionLevel() {
+ return compressionLevel;
+ }
+
+ public void setCompressionLevel(Integer compressionLevel) {
+ this.compressionLevel = compressionLevel;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatAutoConfiguration.java b/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..97a15f9
--- /dev/null
+++ b/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatAutoConfiguration.java
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.avro.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.avro.AvroDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(AvroDataFormatConfiguration.class)
+public class AvroDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(AvroDataFormat.class)
+ public AvroDataFormat configureAvroDataFormat(CamelContext camelContext,
+ AvroDataFormatConfiguration configuration) throws Exception {
+ AvroDataFormat dataformat = new AvroDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java b/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
new file mode 100644
index 0000000..517051c
--- /dev/null
+++ b/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
@@ -0,0 +1,41 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.avro.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Avro data format
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.avro")
+public class AvroDataFormatConfiguration {
+
+ /**
+ * Class name to use for marshal and unmarshalling
+ */
+ private String instanceClassName;
+
+ public String getInstanceClassName() {
+ return instanceClassName;
+ }
+
+ public void setInstanceClassName(String instanceClassName) {
+ this.instanceClassName = instanceClassName;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatAutoConfiguration.java b/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..4c63075
--- /dev/null
+++ b/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.barcode.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.barcode.BarcodeDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BarcodeDataFormatConfiguration.class)
+public class BarcodeDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BarcodeDataFormat.class)
+ public BarcodeDataFormat configureBarcodeDataFormat(
+ CamelContext camelContext,
+ BarcodeDataFormatConfiguration configuration) throws Exception {
+ BarcodeDataFormat dataformat = new BarcodeDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatConfiguration.java b/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatConfiguration.java
new file mode 100644
index 0000000..2d0f624
--- /dev/null
+++ b/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.barcode.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Barcode (e.g. QRcode, PDF417, DataMatrix) support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.barcode")
+public class BarcodeDataFormatConfiguration {
+
+ /**
+ * Width of the barcode
+ */
+ private Integer width;
+ /**
+ * Height of the barcode
+ */
+ private Integer height;
+ /**
+ * Image type of the barcode such as png
+ */
+ private String imageType;
+ /**
+ * Barcode format such as QR-Code
+ */
+ private String barcodeFormat;
+
+ public Integer getWidth() {
+ return width;
+ }
+
+ public void setWidth(Integer width) {
+ this.width = width;
+ }
+
+ public Integer getHeight() {
+ return height;
+ }
+
+ public void setHeight(Integer height) {
+ this.height = height;
+ }
+
+ public String getImageType() {
+ return imageType;
+ }
+
+ public void setImageType(String imageType) {
+ this.imageType = imageType;
+ }
+
+ public String getBarcodeFormat() {
+ return barcodeFormat;
+ }
+
+ public void setBarcodeFormat(String barcodeFormat) {
+ this.barcodeFormat = barcodeFormat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatAutoConfiguration.java b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatAutoConfiguration.java
new file mode 100644
index 0000000..c5cce32
--- /dev/null
+++ b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.base64.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.base64.Base64DataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(Base64DataFormatConfiguration.class)
+public class Base64DataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(Base64DataFormat.class)
+ public Base64DataFormat configureBase64DataFormat(
+ CamelContext camelContext,
+ Base64DataFormatConfiguration configuration) throws Exception {
+ Base64DataFormat dataformat = new Base64DataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java
new file mode 100644
index 0000000..929deec
--- /dev/null
+++ b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java
@@ -0,0 +1,68 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.base64.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Base64 data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.base64")
+public class Base64DataFormatConfiguration {
+
+ /**
+ * To specific a maximum line length for the encoded data. By default 76 is
+ * used.
+ */
+ private Integer lineLength;
+ /**
+ * The line separators to use. By default \r\n is used.
+ */
+ private String lineSeparator;
+ /**
+ * Instead of emitting '' and '/' we emit '-' and '_' respectively. urlSafe
+ * is only applied to encode operations. Decoding seamlessly handles both
+ * modes. Is by default false.
+ */
+ private Boolean urlSafe;
+
+ public Integer getLineLength() {
+ return lineLength;
+ }
+
+ public void setLineLength(Integer lineLength) {
+ this.lineLength = lineLength;
+ }
+
+ public String getLineSeparator() {
+ return lineSeparator;
+ }
+
+ public void setLineSeparator(String lineSeparator) {
+ this.lineSeparator = lineSeparator;
+ }
+
+ public Boolean getUrlSafe() {
+ return urlSafe;
+ }
+
+ public void setUrlSafe(Boolean urlSafe) {
+ this.urlSafe = urlSafe;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java
new file mode 100644
index 0000000..105bedd
--- /dev/null
+++ b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.beanio.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.beanio.BeanIODataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BeanIODataFormatConfiguration.class)
+public class BeanIODataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BeanIODataFormat.class)
+ public BeanIODataFormat configureBeanIODataFormat(
+ CamelContext camelContext,
+ BeanIODataFormatConfiguration configuration) throws Exception {
+ BeanIODataFormat dataformat = new BeanIODataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java
new file mode 100644
index 0000000..e3babce
--- /dev/null
+++ b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java
@@ -0,0 +1,103 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.beanio.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel BeanIO data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.beanio")
+public class BeanIODataFormatConfiguration {
+
+ /**
+ * The BeanIO mapping file. Is by default loaded from the classpath. You can
+ * prefix with file: http: or classpath: to denote from where to load the
+ * mapping file.
+ */
+ private String mapping;
+ /**
+ * The name of the stream to use.
+ */
+ private String streamName;
+ /**
+ * Whether to ignore unidentified records.
+ */
+ private Boolean ignoreUnidentifiedRecords;
+ /**
+ * Whether to ignore unexpected records.
+ */
+ private Boolean ignoreUnexpectedRecords;
+ /**
+ * Whether to ignore invalid records.
+ */
+ private Boolean ignoreInvalidRecords;
+ /**
+ * The charset to use. Is by default the JVM platform default charset.
+ */
+ private String encoding;
+
+ public String getMapping() {
+ return mapping;
+ }
+
+ public void setMapping(String mapping) {
+ this.mapping = mapping;
+ }
+
+ public String getStreamName() {
+ return streamName;
+ }
+
+ public void setStreamName(String streamName) {
+ this.streamName = streamName;
+ }
+
+ public Boolean getIgnoreUnidentifiedRecords() {
+ return ignoreUnidentifiedRecords;
+ }
+
+ public void setIgnoreUnidentifiedRecords(Boolean ignoreUnidentifiedRecords) {
+ this.ignoreUnidentifiedRecords = ignoreUnidentifiedRecords;
+ }
+
+ public Boolean getIgnoreUnexpectedRecords() {
+ return ignoreUnexpectedRecords;
+ }
+
+ public void setIgnoreUnexpectedRecords(Boolean ignoreUnexpectedRecords) {
+ this.ignoreUnexpectedRecords = ignoreUnexpectedRecords;
+ }
+
+ public Boolean getIgnoreInvalidRecords() {
+ return ignoreInvalidRecords;
+ }
+
+ public void setIgnoreInvalidRecords(Boolean ignoreInvalidRecords) {
+ this.ignoreInvalidRecords = ignoreInvalidRecords;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..68d13ae
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.csv.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BindyCsvDataFormatConfiguration.class)
+public class BindyCsvDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BindyCsvDataFormat.class)
+ public BindyCsvDataFormat configureBindyCsvDataFormat(
+ CamelContext camelContext,
+ BindyCsvDataFormatConfiguration configuration) throws Exception {
+ BindyCsvDataFormat dataformat = new BindyCsvDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java
new file mode 100644
index 0000000..befeff9
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java
@@ -0,0 +1,67 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.csv.springboot;
+
+import org.apache.camel.model.dataformat.BindyType;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Bindy data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.bindy")
+public class BindyCsvDataFormatConfiguration {
+
+ /**
+ * Whether to use csv fixed or key value pairs mode.
+ */
+ private BindyType type;
+ /**
+ * Name of model class to use.
+ */
+ private String classType;
+ /**
+ * To configure a default locale to use such as us for united states. To use
+ * the JVM platform default locale then use the name default
+ */
+ private String locale;
+
+ public BindyType getType() {
+ return type;
+ }
+
+ public void setType(BindyType type) {
+ this.type = type;
+ }
+
+ public String getClassType() {
+ return classType;
+ }
+
+ public void setClassType(String classType) {
+ this.classType = classType;
+ }
+
+ public String getLocale() {
+ return locale;
+ }
+
+ public void setLocale(String locale) {
+ this.locale = locale;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..1fbb5df
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.fixed.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BindyFixedLengthDataFormatConfiguration.class)
+public class BindyFixedLengthDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BindyFixedLengthDataFormat.class)
+ public BindyFixedLengthDataFormat configureBindyFixedLengthDataFormat(
+ CamelContext camelContext,
+ BindyFixedLengthDataFormatConfiguration configuration)
+ throws Exception {
+ BindyFixedLengthDataFormat dataformat = new BindyFixedLengthDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java
new file mode 100644
index 0000000..a159408
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java
@@ -0,0 +1,67 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.fixed.springboot;
+
+import org.apache.camel.model.dataformat.BindyType;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Bindy data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.bindy")
+public class BindyFixedLengthDataFormatConfiguration {
+
+ /**
+ * Whether to use csv fixed or key value pairs mode.
+ */
+ private BindyType type;
+ /**
+ * Name of model class to use.
+ */
+ private String classType;
+ /**
+ * To configure a default locale to use such as us for united states. To use
+ * the JVM platform default locale then use the name default
+ */
+ private String locale;
+
+ public BindyType getType() {
+ return type;
+ }
+
+ public void setType(BindyType type) {
+ this.type = type;
+ }
+
+ public String getClassType() {
+ return classType;
+ }
+
+ public void setClassType(String classType) {
+ this.classType = classType;
+ }
+
+ public String getLocale() {
+ return locale;
+ }
+
+ public void setLocale(String locale) {
+ this.locale = locale;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..6601ad2
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.kvp.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BindyKeyValuePairDataFormatConfiguration.class)
+public class BindyKeyValuePairDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BindyKeyValuePairDataFormat.class)
+ public BindyKeyValuePairDataFormat configureBindyKeyValuePairDataFormat(
+ CamelContext camelContext,
+ BindyKeyValuePairDataFormatConfiguration configuration)
+ throws Exception {
+ BindyKeyValuePairDataFormat dataformat = new BindyKeyValuePairDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java
new file mode 100644
index 0000000..ae5011d
--- /dev/null
+++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java
@@ -0,0 +1,67 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.bindy.kvp.springboot;
+
+import org.apache.camel.model.dataformat.BindyType;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Bindy data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.bindy")
+public class BindyKeyValuePairDataFormatConfiguration {
+
+ /**
+ * Whether to use csv fixed or key value pairs mode.
+ */
+ private BindyType type;
+ /**
+ * Name of model class to use.
+ */
+ private String classType;
+ /**
+ * To configure a default locale to use such as us for united states. To use
+ * the JVM platform default locale then use the name default
+ */
+ private String locale;
+
+ public BindyType getType() {
+ return type;
+ }
+
+ public void setType(BindyType type) {
+ this.type = type;
+ }
+
+ public String getClassType() {
+ return classType;
+ }
+
+ public void setClassType(String classType) {
+ this.classType = classType;
+ }
+
+ public String getLocale() {
+ return locale;
+ }
+
+ public void setLocale(String locale) {
+ this.locale = locale;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..22fff8b
--- /dev/null
+++ b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.boon.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.boon.BoonDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(BoonDataFormatConfiguration.class)
+public class BoonDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(BoonDataFormat.class)
+ public BoonDataFormat configureBoonDataFormat(CamelContext camelContext,
+ BoonDataFormatConfiguration configuration) throws Exception {
+ BoonDataFormat dataformat = new BoonDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java
new file mode 100644
index 0000000..7f3b7aa
--- /dev/null
+++ b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java
@@ -0,0 +1,53 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.boon.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Boon support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.boon")
+public class BoonDataFormatConfiguration {
+
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * To unarmshal to a List of Map or a List of Pojo.
+ */
+ private Boolean useList;
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Boolean getUseList() {
+ return useList;
+ }
+
+ public void setUseList(Boolean useList) {
+ this.useList = useList;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..d54eaaf
--- /dev/null
+++ b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.castor.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.castor.CastorDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(CastorDataFormatConfiguration.class)
+public class CastorDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(CastorDataFormat.class)
+ public CastorDataFormat configureCastorDataFormat(
+ CamelContext camelContext,
+ CastorDataFormatConfiguration configuration) throws Exception {
+ CastorDataFormat dataformat = new CastorDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java
new file mode 100644
index 0000000..05ff818
--- /dev/null
+++ b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java
@@ -0,0 +1,89 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.castor.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Castor data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.castor")
+public class CastorDataFormatConfiguration {
+
+ /**
+ * Path to a Castor mapping file to load from the classpath.
+ */
+ private String mappingFile;
+ /**
+ * Whether validation is turned on or off. Is by default true.
+ */
+ private Boolean validation;
+ /**
+ * Encoding to use when marshalling an Object to XML. Is by default UTF-8
+ */
+ private String encoding;
+ /**
+ * Add additional packages to Castor XmlContext
+ */
+ private String[] packages;
+ /**
+ * Add additional class names to Castor XmlContext
+ */
+ private String[] classes;
+
+ public String getMappingFile() {
+ return mappingFile;
+ }
+
+ public void setMappingFile(String mappingFile) {
+ this.mappingFile = mappingFile;
+ }
+
+ public Boolean getValidation() {
+ return validation;
+ }
+
+ public void setValidation(Boolean validation) {
+ this.validation = validation;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
+ public String[] getPackages() {
+ return packages;
+ }
+
+ public void setPackages(String[] packages) {
+ this.packages = packages;
+ }
+
+ public String[] getClasses() {
+ return classes;
+ }
+
+ public void setClasses(String[] classes) {
+ this.classes = classes;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatAutoConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..2ca8d7d
--- /dev/null
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatAutoConfiguration.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.converter.crypto.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.converter.crypto.CryptoDataFormat;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Configuration
+@EnableConfigurationProperties(CryptoDataFormatConfiguration.class)
+public class CryptoDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(CryptoDataFormat.class)
+ public CryptoDataFormat configureCryptoDataFormat(
+ CamelContext camelContext,
+ CryptoDataFormatConfiguration configuration) throws Exception {
+ CryptoDataFormat dataformat = new CryptoDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file