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 09:55:24 UTC
[03/11] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java
new file mode 100644
index 0000000..6a3a7fb
--- /dev/null
+++ b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java
@@ -0,0 +1,134 @@
+/**
+ * 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.soap.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel SOAP support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.soapjaxb")
+public class SoapJaxbDataFormatConfiguration {
+
+ /**
+ * Package name where your JAXB classes are located.
+ */
+ private String contextPath;
+ /**
+ * To overrule and use a specific encoding
+ */
+ private String encoding;
+ /**
+ * Refers to an element strategy to lookup from the registry. An element
+ * name strategy is used for two purposes. The first is to find a xml
+ * element name for a given object and soap action when marshaling the
+ * object into a SOAP message. The second is to find an Exception class for
+ * a given soap fault name. The following three element strategy class name
+ * is provided out of the box. QNameStrategy - Uses a fixed qName that is
+ * configured on instantiation. Exception lookup is not supported
+ * TypeNameStrategy - Uses the name and namespace from the XMLType
+ * annotation of the given type. If no namespace is set then package-info is
+ * used. Exception lookup is not supported ServiceInterfaceStrategy - Uses
+ * information from a webservice interface to determine the type name and to
+ * find the exception class for a SOAP fault All three classes is located in
+ * the package name org.apache.camel.dataformat.soap.name If you have
+ * generated the web service stub code with cxf-codegen or a similar tool
+ * then you probably will want to use the ServiceInterfaceStrategy. In the
+ * case you have no annotated service interface you should use QNameStrategy
+ * or TypeNameStrategy.
+ */
+ private String elementNameStrategyRef;
+ /**
+ * SOAP version should either be 1.1 or 1.2. Is by default 1.1
+ */
+ private String version;
+ /**
+ * When marshalling using JAXB or SOAP then the JAXB implementation will
+ * automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control
+ * this mapping Camel allows you to refer to a map which contains the
+ * desired mapping.
+ */
+ private String namespacePrefixRef;
+ /**
+ * To validate against an existing schema. Your can use the prefix
+ * classpath: file: or http: to specify how the resource should by resolved.
+ * You can separate multiple schema files by using the '' character.
+ */
+ private String schema;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public String getContextPath() {
+ return contextPath;
+ }
+
+ public void setContextPath(String contextPath) {
+ this.contextPath = contextPath;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
+ public String getElementNameStrategyRef() {
+ return elementNameStrategyRef;
+ }
+
+ public void setElementNameStrategyRef(String elementNameStrategyRef) {
+ this.elementNameStrategyRef = elementNameStrategyRef;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getNamespacePrefixRef() {
+ return namespacePrefixRef;
+ }
+
+ public void setNamespacePrefixRef(String namespacePrefixRef) {
+ this.namespacePrefixRef = namespacePrefixRef;
+ }
+
+ public String getSchema() {
+ return schema;
+ }
+
+ public void setSchema(String schema) {
+ this.schema = schema;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-soap/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-soap/src/main/resources/META-INF/spring.factories b/components/camel-soap/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..f025adf
--- /dev/null
+++ b/components/camel-soap/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.dataformat.soap.springboot.SoapJaxbDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..281cf08
--- /dev/null
+++ b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.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.syslog.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.syslog.SyslogDataFormat;
+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(SyslogDataFormatConfiguration.class)
+public class SyslogDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(SyslogDataFormat.class)
+ public SyslogDataFormat configureSyslogDataFormat(
+ CamelContext camelContext,
+ SyslogDataFormatConfiguration configuration) throws Exception {
+ SyslogDataFormat dataformat = new SyslogDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java
new file mode 100644
index 0000000..44e5d0c
--- /dev/null
+++ b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.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.component.syslog.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Syslog support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.syslog")
+public class SyslogDataFormatConfiguration {
+
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-syslog/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-syslog/src/main/resources/META-INF/spring.factories b/components/camel-syslog/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..f965915
--- /dev/null
+++ b/components/camel-syslog/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.component.syslog.springboot.SyslogDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..07e0696
--- /dev/null
+++ b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.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.tagsoup.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.tagsoup.TidyMarkupDataFormat;
+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(TidyMarkupDataFormatConfiguration.class)
+public class TidyMarkupDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(TidyMarkupDataFormat.class)
+ public TidyMarkupDataFormat configureTidyMarkupDataFormat(
+ CamelContext camelContext,
+ TidyMarkupDataFormatConfiguration configuration) throws Exception {
+ TidyMarkupDataFormat dataformat = new TidyMarkupDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java
new file mode 100644
index 0000000..f842397
--- /dev/null
+++ b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.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.tagsoup.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel TagSoup support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.tidyMarkup")
+public class TidyMarkupDataFormatConfiguration {
+
+ /**
+ * What data type to unmarshal as can either be org.w3c.dom.Node or
+ * java.lang.String. Is by default org.w3c.dom.Node
+ */
+ private String dataObjectType;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public String getDataObjectType() {
+ return dataObjectType;
+ }
+
+ public void setDataObjectType(String dataObjectType) {
+ this.dataObjectType = dataObjectType;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-tagsoup/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-tagsoup/src/main/resources/META-INF/spring.factories b/components/camel-tagsoup/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..e98439e
--- /dev/null
+++ b/components/camel-tagsoup/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.dataformat.tagsoup.springboot.TidyMarkupDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..9f49782
--- /dev/null
+++ b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.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.tarfile.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.tarfile.TarFileDataFormat;
+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(TarFileDataFormatConfiguration.class)
+public class TarFileDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(TarFileDataFormat.class)
+ public TarFileDataFormat configureTarFileDataFormat(
+ CamelContext camelContext,
+ TarFileDataFormatConfiguration configuration) throws Exception {
+ TarFileDataFormat dataformat = new TarFileDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java
new file mode 100644
index 0000000..de898bd
--- /dev/null
+++ b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.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.tarfile.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Tar file support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.tarfile")
+public class TarFileDataFormatConfiguration {
+
+ /**
+ * If the tar file has more then one entry the setting this option to true
+ * allows to work with the splitter EIP to split the data using an iterator
+ * in a streaming mode.
+ */
+ private Boolean usingIterator;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public Boolean getUsingIterator() {
+ return usingIterator;
+ }
+
+ public void setUsingIterator(Boolean usingIterator) {
+ this.usingIterator = usingIterator;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-tarfile/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-tarfile/src/main/resources/META-INF/spring.factories b/components/camel-tarfile/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..9c8e853
--- /dev/null
+++ b/components/camel-tarfile/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.dataformat.tarfile.springboot.TarFileDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..72d4e17
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.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.univocity.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.univocity.UniVocityCsvDataFormat;
+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(UniVocityCsvDataFormatConfiguration.class)
+public class UniVocityCsvDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(UniVocityCsvDataFormat.class)
+ public UniVocityCsvDataFormat configureUniVocityCsvDataFormat(
+ CamelContext camelContext,
+ UniVocityCsvDataFormatConfiguration configuration) throws Exception {
+ UniVocityCsvDataFormat dataformat = new UniVocityCsvDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java
new file mode 100644
index 0000000..47bdd49
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java
@@ -0,0 +1,255 @@
+/**
+ * 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.univocity.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel UniVocity parsers data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.univocity-csv")
+public class UniVocityCsvDataFormatConfiguration {
+
+ /**
+ * Whether or not all values must be quoted when writing them.
+ */
+ private Boolean quoteAllFields;
+ /**
+ * The quote symbol.
+ */
+ private String quote;
+ /**
+ * The quote escape symbol
+ */
+ private String quoteEscape;
+ /**
+ * The delimiter of values
+ */
+ private String delimiter;
+ /**
+ * The string representation of a null value. The default value is null
+ */
+ private String nullValue;
+ /**
+ * Whether or not the empty lines must be ignored. The default value is true
+ */
+ private Boolean skipEmptyLines;
+ /**
+ * Whether or not the trailing white spaces must ignored. The default value
+ * is true
+ */
+ private Boolean ignoreTrailingWhitespaces;
+ /**
+ * Whether or not the leading white spaces must be ignored. The default
+ * value is true
+ */
+ private Boolean ignoreLeadingWhitespaces;
+ /**
+ * Whether or not the headers are disabled. When defined this option
+ * explicitly sets the headers as null which indicates that there is no
+ * header. The default value is false
+ */
+ private Boolean headersDisabled;
+ /**
+ * Whether or not the header must be read in the first line of the test
+ * document The default value is false
+ */
+ private Boolean headerExtractionEnabled;
+ /**
+ * The maximum number of record to read.
+ */
+ private Integer numberOfRecordsToRead;
+ /**
+ * The String representation of an empty value
+ */
+ private String emptyValue;
+ /**
+ * The line separator of the files The default value is to use the JVM
+ * platform line separator
+ */
+ private String lineSeparator;
+ /**
+ * The normalized line separator of the files The default value is \n
+ */
+ private String normalizedLineSeparator;
+ /**
+ * The comment symbol. The default value is
+ */
+ private String comment;
+ /**
+ * Whether the unmarshalling should produce an iterator that reads the lines
+ * on the fly or if all the lines must be read at one. The default value is
+ * false
+ */
+ private Boolean lazyLoad;
+ /**
+ * Whether the unmarshalling should produce maps for the lines values
+ * instead of lists. It requires to have header (either defined or
+ * collected). The default value is false
+ */
+ private Boolean asMap;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public Boolean getQuoteAllFields() {
+ return quoteAllFields;
+ }
+
+ public void setQuoteAllFields(Boolean quoteAllFields) {
+ this.quoteAllFields = quoteAllFields;
+ }
+
+ public String getQuote() {
+ return quote;
+ }
+
+ public void setQuote(String quote) {
+ this.quote = quote;
+ }
+
+ public String getQuoteEscape() {
+ return quoteEscape;
+ }
+
+ public void setQuoteEscape(String quoteEscape) {
+ this.quoteEscape = quoteEscape;
+ }
+
+ public String getDelimiter() {
+ return delimiter;
+ }
+
+ public void setDelimiter(String delimiter) {
+ this.delimiter = delimiter;
+ }
+
+ public String getNullValue() {
+ return nullValue;
+ }
+
+ public void setNullValue(String nullValue) {
+ this.nullValue = nullValue;
+ }
+
+ public Boolean getSkipEmptyLines() {
+ return skipEmptyLines;
+ }
+
+ public void setSkipEmptyLines(Boolean skipEmptyLines) {
+ this.skipEmptyLines = skipEmptyLines;
+ }
+
+ public Boolean getIgnoreTrailingWhitespaces() {
+ return ignoreTrailingWhitespaces;
+ }
+
+ public void setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) {
+ this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces;
+ }
+
+ public Boolean getIgnoreLeadingWhitespaces() {
+ return ignoreLeadingWhitespaces;
+ }
+
+ public void setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) {
+ this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces;
+ }
+
+ public Boolean getHeadersDisabled() {
+ return headersDisabled;
+ }
+
+ public void setHeadersDisabled(Boolean headersDisabled) {
+ this.headersDisabled = headersDisabled;
+ }
+
+ public Boolean getHeaderExtractionEnabled() {
+ return headerExtractionEnabled;
+ }
+
+ public void setHeaderExtractionEnabled(Boolean headerExtractionEnabled) {
+ this.headerExtractionEnabled = headerExtractionEnabled;
+ }
+
+ public Integer getNumberOfRecordsToRead() {
+ return numberOfRecordsToRead;
+ }
+
+ public void setNumberOfRecordsToRead(Integer numberOfRecordsToRead) {
+ this.numberOfRecordsToRead = numberOfRecordsToRead;
+ }
+
+ public String getEmptyValue() {
+ return emptyValue;
+ }
+
+ public void setEmptyValue(String emptyValue) {
+ this.emptyValue = emptyValue;
+ }
+
+ public String getLineSeparator() {
+ return lineSeparator;
+ }
+
+ public void setLineSeparator(String lineSeparator) {
+ this.lineSeparator = lineSeparator;
+ }
+
+ public String getNormalizedLineSeparator() {
+ return normalizedLineSeparator;
+ }
+
+ public void setNormalizedLineSeparator(String normalizedLineSeparator) {
+ this.normalizedLineSeparator = normalizedLineSeparator;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public Boolean getLazyLoad() {
+ return lazyLoad;
+ }
+
+ public void setLazyLoad(Boolean lazyLoad) {
+ this.lazyLoad = lazyLoad;
+ }
+
+ public Boolean getAsMap() {
+ return asMap;
+ }
+
+ public void setAsMap(Boolean asMap) {
+ this.asMap = asMap;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..1a03fb3
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.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.univocity.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormat;
+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(UniVocityFixedWidthDataFormatConfiguration.class)
+public class UniVocityFixedWidthDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(UniVocityFixedWidthDataFormat.class)
+ public UniVocityFixedWidthDataFormat configureUniVocityFixedWidthDataFormat(
+ CamelContext camelContext,
+ UniVocityFixedWidthDataFormatConfiguration configuration)
+ throws Exception {
+ UniVocityFixedWidthDataFormat dataformat = new UniVocityFixedWidthDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java
new file mode 100644
index 0000000..282c29a
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java
@@ -0,0 +1,245 @@
+/**
+ * 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.univocity.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel UniVocity parsers data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.univocity-fixed")
+public class UniVocityFixedWidthDataFormatConfiguration {
+
+ /**
+ * Whether or not the trailing characters until new line must be ignored.
+ * The default value is false
+ */
+ private Boolean skipTrailingCharsUntilNewline;
+ /**
+ * Whether or not the record ends on new line. The default value is false
+ */
+ private Boolean recordEndsOnNewline;
+ /**
+ * The padding character. The default value is a space
+ */
+ private String padding;
+ /**
+ * The string representation of a null value. The default value is null
+ */
+ private String nullValue;
+ /**
+ * Whether or not the empty lines must be ignored. The default value is true
+ */
+ private Boolean skipEmptyLines;
+ /**
+ * Whether or not the trailing white spaces must ignored. The default value
+ * is true
+ */
+ private Boolean ignoreTrailingWhitespaces;
+ /**
+ * Whether or not the leading white spaces must be ignored. The default
+ * value is true
+ */
+ private Boolean ignoreLeadingWhitespaces;
+ /**
+ * Whether or not the headers are disabled. When defined this option
+ * explicitly sets the headers as null which indicates that there is no
+ * header. The default value is false
+ */
+ private Boolean headersDisabled;
+ /**
+ * Whether or not the header must be read in the first line of the test
+ * document The default value is false
+ */
+ private Boolean headerExtractionEnabled;
+ /**
+ * The maximum number of record to read.
+ */
+ private Integer numberOfRecordsToRead;
+ /**
+ * The String representation of an empty value
+ */
+ private String emptyValue;
+ /**
+ * The line separator of the files The default value is to use the JVM
+ * platform line separator
+ */
+ private String lineSeparator;
+ /**
+ * The normalized line separator of the files The default value is \n
+ */
+ private String normalizedLineSeparator;
+ /**
+ * The comment symbol. The default value is
+ */
+ private String comment;
+ /**
+ * Whether the unmarshalling should produce an iterator that reads the lines
+ * on the fly or if all the lines must be read at one. The default value is
+ * false
+ */
+ private Boolean lazyLoad;
+ /**
+ * Whether the unmarshalling should produce maps for the lines values
+ * instead of lists. It requires to have header (either defined or
+ * collected). The default value is false
+ */
+ private Boolean asMap;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public Boolean getSkipTrailingCharsUntilNewline() {
+ return skipTrailingCharsUntilNewline;
+ }
+
+ public void setSkipTrailingCharsUntilNewline(
+ Boolean skipTrailingCharsUntilNewline) {
+ this.skipTrailingCharsUntilNewline = skipTrailingCharsUntilNewline;
+ }
+
+ public Boolean getRecordEndsOnNewline() {
+ return recordEndsOnNewline;
+ }
+
+ public void setRecordEndsOnNewline(Boolean recordEndsOnNewline) {
+ this.recordEndsOnNewline = recordEndsOnNewline;
+ }
+
+ public String getPadding() {
+ return padding;
+ }
+
+ public void setPadding(String padding) {
+ this.padding = padding;
+ }
+
+ public String getNullValue() {
+ return nullValue;
+ }
+
+ public void setNullValue(String nullValue) {
+ this.nullValue = nullValue;
+ }
+
+ public Boolean getSkipEmptyLines() {
+ return skipEmptyLines;
+ }
+
+ public void setSkipEmptyLines(Boolean skipEmptyLines) {
+ this.skipEmptyLines = skipEmptyLines;
+ }
+
+ public Boolean getIgnoreTrailingWhitespaces() {
+ return ignoreTrailingWhitespaces;
+ }
+
+ public void setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) {
+ this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces;
+ }
+
+ public Boolean getIgnoreLeadingWhitespaces() {
+ return ignoreLeadingWhitespaces;
+ }
+
+ public void setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) {
+ this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces;
+ }
+
+ public Boolean getHeadersDisabled() {
+ return headersDisabled;
+ }
+
+ public void setHeadersDisabled(Boolean headersDisabled) {
+ this.headersDisabled = headersDisabled;
+ }
+
+ public Boolean getHeaderExtractionEnabled() {
+ return headerExtractionEnabled;
+ }
+
+ public void setHeaderExtractionEnabled(Boolean headerExtractionEnabled) {
+ this.headerExtractionEnabled = headerExtractionEnabled;
+ }
+
+ public Integer getNumberOfRecordsToRead() {
+ return numberOfRecordsToRead;
+ }
+
+ public void setNumberOfRecordsToRead(Integer numberOfRecordsToRead) {
+ this.numberOfRecordsToRead = numberOfRecordsToRead;
+ }
+
+ public String getEmptyValue() {
+ return emptyValue;
+ }
+
+ public void setEmptyValue(String emptyValue) {
+ this.emptyValue = emptyValue;
+ }
+
+ public String getLineSeparator() {
+ return lineSeparator;
+ }
+
+ public void setLineSeparator(String lineSeparator) {
+ this.lineSeparator = lineSeparator;
+ }
+
+ public String getNormalizedLineSeparator() {
+ return normalizedLineSeparator;
+ }
+
+ public void setNormalizedLineSeparator(String normalizedLineSeparator) {
+ this.normalizedLineSeparator = normalizedLineSeparator;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public Boolean getLazyLoad() {
+ return lazyLoad;
+ }
+
+ public void setLazyLoad(Boolean lazyLoad) {
+ this.lazyLoad = lazyLoad;
+ }
+
+ public Boolean getAsMap() {
+ return asMap;
+ }
+
+ public void setAsMap(Boolean asMap) {
+ this.asMap = asMap;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..0c0f2a7
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.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.univocity.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.univocity.UniVocityTsvDataFormat;
+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(UniVocityTsvDataFormatConfiguration.class)
+public class UniVocityTsvDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(UniVocityTsvDataFormat.class)
+ public UniVocityTsvDataFormat configureUniVocityTsvDataFormat(
+ CamelContext camelContext,
+ UniVocityTsvDataFormatConfiguration configuration) throws Exception {
+ UniVocityTsvDataFormat dataformat = new UniVocityTsvDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java
new file mode 100644
index 0000000..384b0a4
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java
@@ -0,0 +1,219 @@
+/**
+ * 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.univocity.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel UniVocity parsers data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.univocity-tsv")
+public class UniVocityTsvDataFormatConfiguration {
+
+ /**
+ * The escape character.
+ */
+ private String escapeChar;
+ /**
+ * The string representation of a null value. The default value is null
+ */
+ private String nullValue;
+ /**
+ * Whether or not the empty lines must be ignored. The default value is true
+ */
+ private Boolean skipEmptyLines;
+ /**
+ * Whether or not the trailing white spaces must ignored. The default value
+ * is true
+ */
+ private Boolean ignoreTrailingWhitespaces;
+ /**
+ * Whether or not the leading white spaces must be ignored. The default
+ * value is true
+ */
+ private Boolean ignoreLeadingWhitespaces;
+ /**
+ * Whether or not the headers are disabled. When defined this option
+ * explicitly sets the headers as null which indicates that there is no
+ * header. The default value is false
+ */
+ private Boolean headersDisabled;
+ /**
+ * Whether or not the header must be read in the first line of the test
+ * document The default value is false
+ */
+ private Boolean headerExtractionEnabled;
+ /**
+ * The maximum number of record to read.
+ */
+ private Integer numberOfRecordsToRead;
+ /**
+ * The String representation of an empty value
+ */
+ private String emptyValue;
+ /**
+ * The line separator of the files The default value is to use the JVM
+ * platform line separator
+ */
+ private String lineSeparator;
+ /**
+ * The normalized line separator of the files The default value is \n
+ */
+ private String normalizedLineSeparator;
+ /**
+ * The comment symbol. The default value is
+ */
+ private String comment;
+ /**
+ * Whether the unmarshalling should produce an iterator that reads the lines
+ * on the fly or if all the lines must be read at one. The default value is
+ * false
+ */
+ private Boolean lazyLoad;
+ /**
+ * Whether the unmarshalling should produce maps for the lines values
+ * instead of lists. It requires to have header (either defined or
+ * collected). The default value is false
+ */
+ private Boolean asMap;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public String getEscapeChar() {
+ return escapeChar;
+ }
+
+ public void setEscapeChar(String escapeChar) {
+ this.escapeChar = escapeChar;
+ }
+
+ public String getNullValue() {
+ return nullValue;
+ }
+
+ public void setNullValue(String nullValue) {
+ this.nullValue = nullValue;
+ }
+
+ public Boolean getSkipEmptyLines() {
+ return skipEmptyLines;
+ }
+
+ public void setSkipEmptyLines(Boolean skipEmptyLines) {
+ this.skipEmptyLines = skipEmptyLines;
+ }
+
+ public Boolean getIgnoreTrailingWhitespaces() {
+ return ignoreTrailingWhitespaces;
+ }
+
+ public void setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) {
+ this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces;
+ }
+
+ public Boolean getIgnoreLeadingWhitespaces() {
+ return ignoreLeadingWhitespaces;
+ }
+
+ public void setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) {
+ this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces;
+ }
+
+ public Boolean getHeadersDisabled() {
+ return headersDisabled;
+ }
+
+ public void setHeadersDisabled(Boolean headersDisabled) {
+ this.headersDisabled = headersDisabled;
+ }
+
+ public Boolean getHeaderExtractionEnabled() {
+ return headerExtractionEnabled;
+ }
+
+ public void setHeaderExtractionEnabled(Boolean headerExtractionEnabled) {
+ this.headerExtractionEnabled = headerExtractionEnabled;
+ }
+
+ public Integer getNumberOfRecordsToRead() {
+ return numberOfRecordsToRead;
+ }
+
+ public void setNumberOfRecordsToRead(Integer numberOfRecordsToRead) {
+ this.numberOfRecordsToRead = numberOfRecordsToRead;
+ }
+
+ public String getEmptyValue() {
+ return emptyValue;
+ }
+
+ public void setEmptyValue(String emptyValue) {
+ this.emptyValue = emptyValue;
+ }
+
+ public String getLineSeparator() {
+ return lineSeparator;
+ }
+
+ public void setLineSeparator(String lineSeparator) {
+ this.lineSeparator = lineSeparator;
+ }
+
+ public String getNormalizedLineSeparator() {
+ return normalizedLineSeparator;
+ }
+
+ public void setNormalizedLineSeparator(String normalizedLineSeparator) {
+ this.normalizedLineSeparator = normalizedLineSeparator;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public Boolean getLazyLoad() {
+ return lazyLoad;
+ }
+
+ public void setLazyLoad(Boolean lazyLoad) {
+ this.lazyLoad = lazyLoad;
+ }
+
+ public Boolean getAsMap() {
+ return asMap;
+ }
+
+ public void setAsMap(Boolean asMap) {
+ this.asMap = asMap;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories b/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..6affb9f
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,23 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.dataformat.univocity.springboot.UniVocityCsvDataFormatAutoConfiguration,\
+org.apache.camel.dataformat.univocity.springboot.UniVocityFixedWidthDataFormatAutoConfiguration,\
+org.apache.camel.dataformat.univocity.springboot.UniVocityTsvDataFormatAutoConfiguration
+
+
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..128c6da
--- /dev/null
+++ b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.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.converter.xmlbeans.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.converter.xmlbeans.XmlBeansDataFormat;
+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(XmlBeansDataFormatConfiguration.class)
+public class XmlBeansDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(XmlBeansDataFormat.class)
+ public XmlBeansDataFormat configureXmlBeansDataFormat(
+ CamelContext camelContext,
+ XmlBeansDataFormatConfiguration configuration) throws Exception {
+ XmlBeansDataFormat dataformat = new XmlBeansDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java
new file mode 100644
index 0000000..e551b70
--- /dev/null
+++ b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.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.converter.xmlbeans.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel XMLBeans support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.xmlBeans")
+public class XmlBeansDataFormatConfiguration {
+
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories b/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..6154ec6
--- /dev/null
+++ b/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.converter.xmlbeans.springboot.XmlBeansDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.java b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..910e638
--- /dev/null
+++ b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.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.xmljson.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.xmljson.XmlJsonDataFormat;
+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(XmlJsonDataFormatConfiguration.class)
+public class XmlJsonDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(XmlJsonDataFormat.class)
+ public XmlJsonDataFormat configureXmlJsonDataFormat(
+ CamelContext camelContext,
+ XmlJsonDataFormatConfiguration configuration) throws Exception {
+ XmlJsonDataFormat dataformat = new XmlJsonDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java
new file mode 100644
index 0000000..f651b62
--- /dev/null
+++ b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java
@@ -0,0 +1,213 @@
+/**
+ * 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.xmljson.springboot;
+
+import java.util.List;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel XML JSON Data Format
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.xmljson")
+public class XmlJsonDataFormatConfiguration {
+
+ /**
+ * Sets the encoding. Used for unmarshalling (JSON to XML conversion).
+ */
+ private String encoding;
+ /**
+ * Specifies the name of the XML elements representing each array element.
+ * Used for unmarshalling (JSON to XML conversion).
+ */
+ private String elementName;
+ /**
+ * Specifies the name of the top-level XML element. Used for unmarshalling
+ * (JSON to XML conversion). For example when converting 1 2 3 it will be
+ * output by default as 123. By setting this option or rootName you can
+ * alter the name of element 'a'.
+ */
+ private String arrayName;
+ /**
+ * Determines whether the resulting JSON will start off with a top-most
+ * element whose name matches the XML root element. Used for marshalling
+ * (XML to JSon conversion). If disabled XML string 12 turns into 'x: '1'
+ * 'y': '2' . Otherwise it turns into 'a': 'x: '1' 'y': '2' .
+ */
+ private Boolean forceTopLevelObject;
+ /**
+ * Flag to be tolerant to incomplete namespace prefixes. Used for
+ * unmarshalling (JSON to XML conversion). In most cases json-lib
+ * automatically changes this flag at runtime to match the processing.
+ */
+ private Boolean namespaceLenient;
+ /**
+ * Specifies the name of the top-level element. Used for unmarshalling (JSON
+ * to XML conversion). If not set json-lib will use arrayName or objectName
+ * (default value: 'o' at the current time it is not configurable in this
+ * data format). If set to 'root' the JSON string 'x': 'value1' 'y' :
+ * 'value2' would turn into value1value2 otherwise the 'root' element would
+ * be named 'o'.
+ */
+ private String rootName;
+ /**
+ * Determines whether white spaces between XML elements will be regarded as
+ * text values or disregarded. Used for marshalling (XML to JSon
+ * conversion).
+ */
+ private Boolean skipWhitespace;
+ /**
+ * Determines whether leading and trailing white spaces will be omitted from
+ * String values. Used for marshalling (XML to JSon conversion).
+ */
+ private Boolean trimSpaces;
+ /**
+ * Signals whether namespaces should be ignored. By default they will be
+ * added to the JSON output using xmlns elements. Used for marshalling (XML
+ * to JSon conversion).
+ */
+ private Boolean skipNamespaces;
+ /**
+ * Removes the namespace prefixes from XML qualified elements so that the
+ * resulting JSON string does not contain them. Used for marshalling (XML to
+ * JSon conversion).
+ */
+ private Boolean removeNamespacePrefixes;
+ /**
+ * With expandable properties JSON array elements are converted to XML as a
+ * sequence of repetitive XML elements with the local name equal to the JSON
+ * key for example: number: 123 normally converted to: 123 (where e can be
+ * modified by setting elementName) would instead translate to 123 if number
+ * is set as an expandable property Used for unmarshalling (JSON to XML
+ * conversion).
+ */
+ private List<java.lang.String> expandableProperties;
+ /**
+ * Adds type hints to the resulting XML to aid conversion back to JSON. Used
+ * for unmarshalling (JSON to XML conversion).
+ */
+ private String typeHints;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
+ public String getElementName() {
+ return elementName;
+ }
+
+ public void setElementName(String elementName) {
+ this.elementName = elementName;
+ }
+
+ public String getArrayName() {
+ return arrayName;
+ }
+
+ public void setArrayName(String arrayName) {
+ this.arrayName = arrayName;
+ }
+
+ public Boolean getForceTopLevelObject() {
+ return forceTopLevelObject;
+ }
+
+ public void setForceTopLevelObject(Boolean forceTopLevelObject) {
+ this.forceTopLevelObject = forceTopLevelObject;
+ }
+
+ public Boolean getNamespaceLenient() {
+ return namespaceLenient;
+ }
+
+ public void setNamespaceLenient(Boolean namespaceLenient) {
+ this.namespaceLenient = namespaceLenient;
+ }
+
+ public String getRootName() {
+ return rootName;
+ }
+
+ public void setRootName(String rootName) {
+ this.rootName = rootName;
+ }
+
+ public Boolean getSkipWhitespace() {
+ return skipWhitespace;
+ }
+
+ public void setSkipWhitespace(Boolean skipWhitespace) {
+ this.skipWhitespace = skipWhitespace;
+ }
+
+ public Boolean getTrimSpaces() {
+ return trimSpaces;
+ }
+
+ public void setTrimSpaces(Boolean trimSpaces) {
+ this.trimSpaces = trimSpaces;
+ }
+
+ public Boolean getSkipNamespaces() {
+ return skipNamespaces;
+ }
+
+ public void setSkipNamespaces(Boolean skipNamespaces) {
+ this.skipNamespaces = skipNamespaces;
+ }
+
+ public Boolean getRemoveNamespacePrefixes() {
+ return removeNamespacePrefixes;
+ }
+
+ public void setRemoveNamespacePrefixes(Boolean removeNamespacePrefixes) {
+ this.removeNamespacePrefixes = removeNamespacePrefixes;
+ }
+
+ public List<String> getExpandableProperties() {
+ return expandableProperties;
+ }
+
+ public void setExpandableProperties(List<String> expandableProperties) {
+ this.expandableProperties = expandableProperties;
+ }
+
+ public String getTypeHints() {
+ return typeHints;
+ }
+
+ public void setTypeHints(String typeHints) {
+ this.typeHints = typeHints;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-xmljson/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-xmljson/src/main/resources/META-INF/spring.factories b/components/camel-xmljson/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..d8c7521
--- /dev/null
+++ b/components/camel-xmljson/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.camel.dataformat.xmljson.springboot.XmlJsonDataFormatAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/f9b58d31/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.java b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..38cb532
--- /dev/null
+++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.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.xmlrpc.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.xmlrpc.XmlRpcDataFormat;
+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(XmlRpcDataFormatConfiguration.class)
+public class XmlRpcDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(XmlRpcDataFormat.class)
+ public XmlRpcDataFormat configureXmlRpcDataFormat(
+ CamelContext camelContext,
+ XmlRpcDataFormatConfiguration configuration) throws Exception {
+ XmlRpcDataFormat dataformat = new XmlRpcDataFormat();
+ if (dataformat instanceof CamelContextAware) {
+ ((CamelContextAware) dataformat).setCamelContext(camelContext);
+ }
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null);
+ 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/f9b58d31/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java
new file mode 100644
index 0000000..5c3800d
--- /dev/null
+++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.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.dataformat.xmlrpc.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel XML RPC support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.xmlrpc")
+public class XmlRpcDataFormatConfiguration {
+
+ /**
+ * Whether to unmarshal request or response Is by default false
+ */
+ private Boolean request;
+ /**
+ * Sets the value of the id property.
+ */
+ private String id;
+
+ public Boolean getRequest() {
+ return request;
+ }
+
+ public void setRequest(Boolean request) {
+ this.request = request;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
\ No newline at end of file