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:40 UTC
[1/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Repository: camel
Updated Branches:
refs/heads/master ccfe59920 -> d76f047d6
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index c7028aa..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/**
- * 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;
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index f313989..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index d33838c..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/**
- * 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;
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index 25af5a6..0000000
--- a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 868ed9e..0000000
--- a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/**
- * 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;
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index fd4462a..0000000
--- a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 6a97071..0000000
--- a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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;
-
- public Boolean getRequest() {
- return request;
- }
-
- public void setRequest(Boolean request) {
- this.request = request;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java
deleted file mode 100644
index 5f192a0..0000000
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.xmlsecurity.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat;
-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(XMLSecurityDataFormatConfiguration.class)
-public class XMLSecurityDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(XMLSecurityDataFormat.class)
- public XMLSecurityDataFormat configureXMLSecurityDataFormat(
- CamelContext camelContext,
- XMLSecurityDataFormatConfiguration configuration) throws Exception {
- XMLSecurityDataFormat dataformat = new XMLSecurityDataFormat();
- 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/234f57d4/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
deleted file mode 100644
index 6eca1fb..0000000
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/**
- * 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.xmlsecurity.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Partial XML Encryption/Decryption and XML Signature support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.secureXML")
-public class XMLSecurityDataFormatConfiguration {
-
- /**
- * The cipher algorithm to be used for encryption/decryption of the XML
- * message content. The available choices are: XMLCipher.TRIPLEDES
- * XMLCipher.AES_128 XMLCipher.AES_128_GCM XMLCipher.AES_192
- * XMLCipher.AES_192_GCM XMLCipher.AES_256 XMLCipher.AES_256_GCM
- * XMLCipher.SEED_128 XMLCipher.CAMELLIA_128 XMLCipher.CAMELLIA_192
- * XMLCipher.CAMELLIA_256 The default value is MLCipher.TRIPLEDES
- */
- private String xmlCipherAlgorithm;
- /**
- * A String used as passPhrase to encrypt/decrypt content. The passPhrase
- * has to be provided. If no passPhrase is specified a default passPhrase is
- * used. The passPhrase needs to be put together in conjunction with the
- * appropriate encryption algorithm. For example using TRIPLEDES the
- * passPhase can be a Only another 24 Byte key
- */
- private String passPhrase;
- /**
- * The XPath reference to the XML Element selected for
- * encryption/decryption. If no tag is specified the entire payload is
- * encrypted/decrypted.
- */
- private String secureTag;
- /**
- * A boolean value to specify whether the XML Element is to be encrypted or
- * the contents of the XML Element false = Element Level true = Element
- * Content Level
- */
- private Boolean secureTagContents;
- /**
- * The cipher algorithm to be used for encryption/decryption of the
- * asymmetric key. The available choices are: XMLCipher.RSA_v1dot5
- * XMLCipher.RSA_OAEP XMLCipher.RSA_OAEP_11 The default value is
- * XMLCipher.RSA_OAEP
- */
- private String keyCipherAlgorithm;
- /**
- * The key alias to be used when retrieving the recipient's public or
- * private key from a KeyStore when performing asymmetric key encryption or
- * decryption.
- */
- private String recipientKeyAlias;
- /**
- * Refers to a KeyStore instance to lookup in the registry which is used for
- * configuration options for creating and loading a KeyStore instance that
- * represents the sender's trustStore or recipient's keyStore.
- */
- private String keyOrTrustStoreParametersId;
- /**
- * The password to be used for retrieving the private key from the KeyStore.
- * This key is used for asymmetric decryption.
- */
- private String keyPassword;
- /**
- * The digest algorithm to use with the RSA OAEP algorithm. The available
- * choices are: XMLCipher.SHA1 XMLCipher.SHA256 XMLCipher.SHA512 The default
- * value is XMLCipher.SHA1
- */
- private String digestAlgorithm;
- /**
- * The MGF Algorithm to use with the RSA OAEP algorithm. The available
- * choices are: EncryptionConstants.MGF1_SHA1
- * EncryptionConstants.MGF1_SHA256 EncryptionConstants.MGF1_SHA512 The
- * default value is EncryptionConstants.MGF1_SHA1
- */
- private String mgfAlgorithm;
- /**
- * Whether to add the public key used to encrypt the session key as a
- * KeyValue in the EncryptedKey structure or not.
- */
- private Boolean addKeyValueForEncryptedKey;
-
- public String getXmlCipherAlgorithm() {
- return xmlCipherAlgorithm;
- }
-
- public void setXmlCipherAlgorithm(String xmlCipherAlgorithm) {
- this.xmlCipherAlgorithm = xmlCipherAlgorithm;
- }
-
- public String getPassPhrase() {
- return passPhrase;
- }
-
- public void setPassPhrase(String passPhrase) {
- this.passPhrase = passPhrase;
- }
-
- public String getSecureTag() {
- return secureTag;
- }
-
- public void setSecureTag(String secureTag) {
- this.secureTag = secureTag;
- }
-
- public Boolean getSecureTagContents() {
- return secureTagContents;
- }
-
- public void setSecureTagContents(Boolean secureTagContents) {
- this.secureTagContents = secureTagContents;
- }
-
- public String getKeyCipherAlgorithm() {
- return keyCipherAlgorithm;
- }
-
- public void setKeyCipherAlgorithm(String keyCipherAlgorithm) {
- this.keyCipherAlgorithm = keyCipherAlgorithm;
- }
-
- public String getRecipientKeyAlias() {
- return recipientKeyAlias;
- }
-
- public void setRecipientKeyAlias(String recipientKeyAlias) {
- this.recipientKeyAlias = recipientKeyAlias;
- }
-
- public String getKeyOrTrustStoreParametersId() {
- return keyOrTrustStoreParametersId;
- }
-
- public void setKeyOrTrustStoreParametersId(
- String keyOrTrustStoreParametersId) {
- this.keyOrTrustStoreParametersId = keyOrTrustStoreParametersId;
- }
-
- public String getKeyPassword() {
- return keyPassword;
- }
-
- public void setKeyPassword(String keyPassword) {
- this.keyPassword = keyPassword;
- }
-
- public String getDigestAlgorithm() {
- return digestAlgorithm;
- }
-
- public void setDigestAlgorithm(String digestAlgorithm) {
- this.digestAlgorithm = digestAlgorithm;
- }
-
- public String getMgfAlgorithm() {
- return mgfAlgorithm;
- }
-
- public void setMgfAlgorithm(String mgfAlgorithm) {
- this.mgfAlgorithm = mgfAlgorithm;
- }
-
- public Boolean getAddKeyValueForEncryptedKey() {
- return addKeyValueForEncryptedKey;
- }
-
- public void setAddKeyValueForEncryptedKey(Boolean addKeyValueForEncryptedKey) {
- this.addKeyValueForEncryptedKey = addKeyValueForEncryptedKey;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java
deleted file mode 100644
index 9b3ac59..0000000
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.xstream.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.xstream.JsonDataFormat;
-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(JsonDataFormatConfiguration.class)
-public class JsonDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(JsonDataFormat.class)
- public JsonDataFormat configureJsonDataFormat(CamelContext camelContext,
- JsonDataFormatConfiguration configuration) throws Exception {
- JsonDataFormat dataformat = new JsonDataFormat();
- 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/234f57d4/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
deleted file mode 100644
index 3107246..0000000
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/**
- * 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.xstream.springboot;
-
-import org.apache.camel.model.dataformat.JsonLibrary;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel XStream support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.json")
-public class JsonDataFormatConfiguration {
-
- /**
- * Lookup and use the existing ObjectMapper with the given id when using
- * Jackson.
- */
- private String objectMapper;
- /**
- * To enable pretty printing output nicely formatted. Is by default false.
- */
- private Boolean prettyPrint;
- /**
- * Which json library to use such. Is by default xstream
- */
- private JsonLibrary library;
- /**
- * Class name of the java type to use when unarmshalling
- */
- private String unmarshalTypeName;
- /**
- * When marshalling a POJO to JSON you might want to exclude certain fields
- * from the JSON output. With Jackson you can use JSON views to accomplish
- * this. This option is to refer to the class which has JsonView annotations
- */
- private Class jsonView;
- /**
- * If you want to marshal a pojo to JSON and the pojo has some fields with
- * null values. And you want to skip these null values you can set this
- * option to NOT_NULL
- */
- private String include;
- /**
- * Used for JMS users to allow the JMSType header from the JMS spec to
- * specify a FQN classname to use to unmarshal to.
- */
- private Boolean allowJmsType;
- /**
- * Refers to a custom collection type to lookup in the registry to use. This
- * option should rarely be used but allows to use different collection types
- * than java.util.Collection based as default.
- */
- private String collectionTypeName;
- /**
- * To unarmshal to a List of Map or a List of Pojo.
- */
- private Boolean useList;
- /**
- * Whether to enable the JAXB annotations module when using jackson. When
- * enabled then JAXB annotations can be used by Jackson.
- */
- private Boolean enableJaxbAnnotationModule;
- /**
- * To use custom Jackson modules com.fasterxml.jackson.databind.Module
- * specified as a String with FQN class names. Multiple classes can be
- * separated by comma.
- */
- private String moduleClassNames;
- /**
- * To use custom Jackson modules referred from the Camel registry. Multiple
- * modules can be separated by comma.
- */
- private String moduleRefs;
- /**
- * Set of features to enable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String enableFeatures;
- /**
- * Set of features to disable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String disableFeatures;
- /**
- * Adds permissions that controls which Java packages and classes XStream is
- * allowed to use during unmarshal from xml/json to Java beans. A permission
- * must be configured either here or globally using a JVM system property.
- * The permission can be specified in a syntax where a plus sign is allow
- * and minus sign is deny. Wildcards is supported by using . as prefix. For
- * example to allow com.foo and all subpackages then specfy com.foo..
- * Multiple permissions can be configured separated by comma such as
- * com.foo.-com.foo.bar.MySecretBean. The following default permission is
- * always included: -java.lang.java.util. unless its overridden by
- * specifying a JVM system property with they key
- * org.apache.camel.xstream.permissions.
- */
- private String permissions;
-
- public String getObjectMapper() {
- return objectMapper;
- }
-
- public void setObjectMapper(String objectMapper) {
- this.objectMapper = objectMapper;
- }
-
- public Boolean getPrettyPrint() {
- return prettyPrint;
- }
-
- public void setPrettyPrint(Boolean prettyPrint) {
- this.prettyPrint = prettyPrint;
- }
-
- public JsonLibrary getLibrary() {
- return library;
- }
-
- public void setLibrary(JsonLibrary library) {
- this.library = library;
- }
-
- public String getUnmarshalTypeName() {
- return unmarshalTypeName;
- }
-
- public void setUnmarshalTypeName(String unmarshalTypeName) {
- this.unmarshalTypeName = unmarshalTypeName;
- }
-
- public Class getJsonView() {
- return jsonView;
- }
-
- public void setJsonView(Class jsonView) {
- this.jsonView = jsonView;
- }
-
- public String getInclude() {
- return include;
- }
-
- public void setInclude(String include) {
- this.include = include;
- }
-
- public Boolean getAllowJmsType() {
- return allowJmsType;
- }
-
- public void setAllowJmsType(Boolean allowJmsType) {
- this.allowJmsType = allowJmsType;
- }
-
- public String getCollectionTypeName() {
- return collectionTypeName;
- }
-
- public void setCollectionTypeName(String collectionTypeName) {
- this.collectionTypeName = collectionTypeName;
- }
-
- public Boolean getUseList() {
- return useList;
- }
-
- public void setUseList(Boolean useList) {
- this.useList = useList;
- }
-
- public Boolean getEnableJaxbAnnotationModule() {
- return enableJaxbAnnotationModule;
- }
-
- public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
- this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
- }
-
- public String getModuleClassNames() {
- return moduleClassNames;
- }
-
- public void setModuleClassNames(String moduleClassNames) {
- this.moduleClassNames = moduleClassNames;
- }
-
- public String getModuleRefs() {
- return moduleRefs;
- }
-
- public void setModuleRefs(String moduleRefs) {
- this.moduleRefs = moduleRefs;
- }
-
- public String getEnableFeatures() {
- return enableFeatures;
- }
-
- public void setEnableFeatures(String enableFeatures) {
- this.enableFeatures = enableFeatures;
- }
-
- public String getDisableFeatures() {
- return disableFeatures;
- }
-
- public void setDisableFeatures(String disableFeatures) {
- this.disableFeatures = disableFeatures;
- }
-
- public String getPermissions() {
- return permissions;
- }
-
- public void setPermissions(String permissions) {
- this.permissions = permissions;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java
deleted file mode 100644
index 065a531..0000000
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.xstream.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.xstream.XStreamDataFormat;
-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(XStreamDataFormatConfiguration.class)
-public class XStreamDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(XStreamDataFormat.class)
- public XStreamDataFormat configureXStreamDataFormat(
- CamelContext camelContext,
- XStreamDataFormatConfiguration configuration) throws Exception {
- XStreamDataFormat dataformat = new XStreamDataFormat();
- 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/234f57d4/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
deleted file mode 100644
index a8236e0..0000000
--- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/**
- * 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.xstream.springboot;
-
-import java.util.List;
-import java.util.Map;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel XStream support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.xstream")
-public class XStreamDataFormatConfiguration {
-
- /**
- * Adds permissions that controls which Java packages and classes XStream is
- * allowed to use during unmarshal from xml/json to Java beans. A permission
- * must be configured either here or globally using a JVM system property.
- * The permission can be specified in a syntax where a plus sign is allow
- * and minus sign is deny. Wildcards is supported by using . as prefix. For
- * example to allow com.foo and all subpackages then specfy com.foo..
- * Multiple permissions can be configured separated by comma such as
- * com.foo.-com.foo.bar.MySecretBean. The following default permission is
- * always included: -java.lang.java.util. unless its overridden by
- * specifying a JVM system property with they key
- * org.apache.camel.xstream.permissions.
- */
- private String permissions;
- /**
- * Sets the encoding to use
- */
- private String encoding;
- /**
- * To use a custom XStream driver. The instance must be of type
- * com.thoughtworks.xstream.io.HierarchicalStreamDriver
- */
- private String driver;
- /**
- * To refer to a custom XStream driver to lookup in the registry. The
- * instance must be of type
- * com.thoughtworks.xstream.io.HierarchicalStreamDriver
- */
- private String driverRef;
- /**
- * Mode for dealing with duplicate references The possible values are:
- * NO_REFERENCES ID_REFERENCES XPATH_RELATIVE_REFERENCES
- * XPATH_ABSOLUTE_REFERENCES SINGLE_NODE_XPATH_RELATIVE_REFERENCES
- * SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES
- */
- private String mode;
- /**
- * List of class names for using custom XStream converters. The classes must
- * be of type com.thoughtworks.xstream.converters.Converter
- */
- private List<java.lang.String> converters;
- /**
- * Alias a Class to a shorter name to be used in XML elements.
- */
- private Map<java.lang.String, java.lang.String> aliases;
- /**
- * Prevents a field from being serialized. To omit a field you must always
- * provide the declaring type and not necessarily the type that is
- * converted.
- */
- private Map<java.lang.String, java.lang.String[]> omitFields;
- /**
- * Adds a default implicit collection which is used for any unmapped XML
- * tag.
- */
- private Map<java.lang.String, java.lang.String[]> implicitCollections;
-
- public String getPermissions() {
- return permissions;
- }
-
- public void setPermissions(String permissions) {
- this.permissions = permissions;
- }
-
- public String getEncoding() {
- return encoding;
- }
-
- public void setEncoding(String encoding) {
- this.encoding = encoding;
- }
-
- public String getDriver() {
- return driver;
- }
-
- public void setDriver(String driver) {
- this.driver = driver;
- }
-
- public String getDriverRef() {
- return driverRef;
- }
-
- public void setDriverRef(String driverRef) {
- this.driverRef = driverRef;
- }
-
- public String getMode() {
- return mode;
- }
-
- public void setMode(String mode) {
- this.mode = mode;
- }
-
- public List<String> getConverters() {
- return converters;
- }
-
- public void setConverters(List<String> converters) {
- this.converters = converters;
- }
-
- public Map<String, String> getAliases() {
- return aliases;
- }
-
- public void setAliases(Map<String, String> aliases) {
- this.aliases = aliases;
- }
-
- public Map<String, String[]> getOmitFields() {
- return omitFields;
- }
-
- public void setOmitFields(Map<String, String[]> omitFields) {
- this.omitFields = omitFields;
- }
-
- public Map<String, String[]> getImplicitCollections() {
- return implicitCollections;
- }
-
- public void setImplicitCollections(Map<String, String[]> implicitCollections) {
- this.implicitCollections = implicitCollections;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java
deleted file mode 100644
index 5ebea8f..0000000
--- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.zipfile.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.zipfile.ZipFileDataFormat;
-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(ZipFileDataFormatConfiguration.class)
-public class ZipFileDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(ZipFileDataFormat.class)
- public ZipFileDataFormat configureZipFileDataFormat(
- CamelContext camelContext,
- ZipFileDataFormatConfiguration configuration) throws Exception {
- ZipFileDataFormat dataformat = new ZipFileDataFormat();
- 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/234f57d4/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
deleted file mode 100644
index b12703f..0000000
--- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * 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.zipfile.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Zip file support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.zipFile")
-public class ZipFileDataFormatConfiguration {
-
- /**
- * If the zip 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;
-
- public Boolean getUsingIterator() {
- return usingIterator;
- }
-
- public void setUsingIterator(Boolean usingIterator) {
- this.usingIterator = usingIterator;
- }
-}
\ No newline at end of file
[5/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..c7028aa
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java
@@ -0,0 +1,233 @@
+/**
+ * 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;
+
+ 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;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..f313989
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatAutoConfiguration.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.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,
+ 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-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..d33838c
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java
@@ -0,0 +1,207 @@
+/**
+ * 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;
+
+ 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;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..25af5a6
--- /dev/null
+++ b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatAutoConfiguration.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.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,
+ 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-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..868ed9e
--- /dev/null
+++ b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java
@@ -0,0 +1,201 @@
+/**
+ * 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;
+
+ 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;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..fd4462a
--- /dev/null
+++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatAutoConfiguration.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.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,
+ 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-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..6a97071
--- /dev/null
+++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.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.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;
+
+ public Boolean getRequest() {
+ return request;
+ }
+
+ public void setRequest(Boolean request) {
+ this.request = request;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..5f192a0
--- /dev/null
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.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.xmlsecurity.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat;
+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(XMLSecurityDataFormatConfiguration.class)
+public class XMLSecurityDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(XMLSecurityDataFormat.class)
+ public XMLSecurityDataFormat configureXMLSecurityDataFormat(
+ CamelContext camelContext,
+ XMLSecurityDataFormatConfiguration configuration) throws Exception {
+ XMLSecurityDataFormat dataformat = new XMLSecurityDataFormat();
+ 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-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
new file mode 100644
index 0000000..6eca1fb
--- /dev/null
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java
@@ -0,0 +1,189 @@
+/**
+ * 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.xmlsecurity.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Partial XML Encryption/Decryption and XML Signature support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.secureXML")
+public class XMLSecurityDataFormatConfiguration {
+
+ /**
+ * The cipher algorithm to be used for encryption/decryption of the XML
+ * message content. The available choices are: XMLCipher.TRIPLEDES
+ * XMLCipher.AES_128 XMLCipher.AES_128_GCM XMLCipher.AES_192
+ * XMLCipher.AES_192_GCM XMLCipher.AES_256 XMLCipher.AES_256_GCM
+ * XMLCipher.SEED_128 XMLCipher.CAMELLIA_128 XMLCipher.CAMELLIA_192
+ * XMLCipher.CAMELLIA_256 The default value is MLCipher.TRIPLEDES
+ */
+ private String xmlCipherAlgorithm;
+ /**
+ * A String used as passPhrase to encrypt/decrypt content. The passPhrase
+ * has to be provided. If no passPhrase is specified a default passPhrase is
+ * used. The passPhrase needs to be put together in conjunction with the
+ * appropriate encryption algorithm. For example using TRIPLEDES the
+ * passPhase can be a Only another 24 Byte key
+ */
+ private String passPhrase;
+ /**
+ * The XPath reference to the XML Element selected for
+ * encryption/decryption. If no tag is specified the entire payload is
+ * encrypted/decrypted.
+ */
+ private String secureTag;
+ /**
+ * A boolean value to specify whether the XML Element is to be encrypted or
+ * the contents of the XML Element false = Element Level true = Element
+ * Content Level
+ */
+ private Boolean secureTagContents;
+ /**
+ * The cipher algorithm to be used for encryption/decryption of the
+ * asymmetric key. The available choices are: XMLCipher.RSA_v1dot5
+ * XMLCipher.RSA_OAEP XMLCipher.RSA_OAEP_11 The default value is
+ * XMLCipher.RSA_OAEP
+ */
+ private String keyCipherAlgorithm;
+ /**
+ * The key alias to be used when retrieving the recipient's public or
+ * private key from a KeyStore when performing asymmetric key encryption or
+ * decryption.
+ */
+ private String recipientKeyAlias;
+ /**
+ * Refers to a KeyStore instance to lookup in the registry which is used for
+ * configuration options for creating and loading a KeyStore instance that
+ * represents the sender's trustStore or recipient's keyStore.
+ */
+ private String keyOrTrustStoreParametersId;
+ /**
+ * The password to be used for retrieving the private key from the KeyStore.
+ * This key is used for asymmetric decryption.
+ */
+ private String keyPassword;
+ /**
+ * The digest algorithm to use with the RSA OAEP algorithm. The available
+ * choices are: XMLCipher.SHA1 XMLCipher.SHA256 XMLCipher.SHA512 The default
+ * value is XMLCipher.SHA1
+ */
+ private String digestAlgorithm;
+ /**
+ * The MGF Algorithm to use with the RSA OAEP algorithm. The available
+ * choices are: EncryptionConstants.MGF1_SHA1
+ * EncryptionConstants.MGF1_SHA256 EncryptionConstants.MGF1_SHA512 The
+ * default value is EncryptionConstants.MGF1_SHA1
+ */
+ private String mgfAlgorithm;
+ /**
+ * Whether to add the public key used to encrypt the session key as a
+ * KeyValue in the EncryptedKey structure or not.
+ */
+ private Boolean addKeyValueForEncryptedKey;
+
+ public String getXmlCipherAlgorithm() {
+ return xmlCipherAlgorithm;
+ }
+
+ public void setXmlCipherAlgorithm(String xmlCipherAlgorithm) {
+ this.xmlCipherAlgorithm = xmlCipherAlgorithm;
+ }
+
+ public String getPassPhrase() {
+ return passPhrase;
+ }
+
+ public void setPassPhrase(String passPhrase) {
+ this.passPhrase = passPhrase;
+ }
+
+ public String getSecureTag() {
+ return secureTag;
+ }
+
+ public void setSecureTag(String secureTag) {
+ this.secureTag = secureTag;
+ }
+
+ public Boolean getSecureTagContents() {
+ return secureTagContents;
+ }
+
+ public void setSecureTagContents(Boolean secureTagContents) {
+ this.secureTagContents = secureTagContents;
+ }
+
+ public String getKeyCipherAlgorithm() {
+ return keyCipherAlgorithm;
+ }
+
+ public void setKeyCipherAlgorithm(String keyCipherAlgorithm) {
+ this.keyCipherAlgorithm = keyCipherAlgorithm;
+ }
+
+ public String getRecipientKeyAlias() {
+ return recipientKeyAlias;
+ }
+
+ public void setRecipientKeyAlias(String recipientKeyAlias) {
+ this.recipientKeyAlias = recipientKeyAlias;
+ }
+
+ public String getKeyOrTrustStoreParametersId() {
+ return keyOrTrustStoreParametersId;
+ }
+
+ public void setKeyOrTrustStoreParametersId(
+ String keyOrTrustStoreParametersId) {
+ this.keyOrTrustStoreParametersId = keyOrTrustStoreParametersId;
+ }
+
+ public String getKeyPassword() {
+ return keyPassword;
+ }
+
+ public void setKeyPassword(String keyPassword) {
+ this.keyPassword = keyPassword;
+ }
+
+ public String getDigestAlgorithm() {
+ return digestAlgorithm;
+ }
+
+ public void setDigestAlgorithm(String digestAlgorithm) {
+ this.digestAlgorithm = digestAlgorithm;
+ }
+
+ public String getMgfAlgorithm() {
+ return mgfAlgorithm;
+ }
+
+ public void setMgfAlgorithm(String mgfAlgorithm) {
+ this.mgfAlgorithm = mgfAlgorithm;
+ }
+
+ public Boolean getAddKeyValueForEncryptedKey() {
+ return addKeyValueForEncryptedKey;
+ }
+
+ public void setAddKeyValueForEncryptedKey(Boolean addKeyValueForEncryptedKey) {
+ this.addKeyValueForEncryptedKey = addKeyValueForEncryptedKey;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..9b3ac59
--- /dev/null
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.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.xstream.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.xstream.JsonDataFormat;
+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(JsonDataFormatConfiguration.class)
+public class JsonDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(JsonDataFormat.class)
+ public JsonDataFormat configureJsonDataFormat(CamelContext camelContext,
+ JsonDataFormatConfiguration configuration) throws Exception {
+ JsonDataFormat dataformat = new JsonDataFormat();
+ 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-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
new file mode 100644
index 0000000..3107246
--- /dev/null
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
@@ -0,0 +1,244 @@
+/**
+ * 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.xstream.springboot;
+
+import org.apache.camel.model.dataformat.JsonLibrary;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel XStream support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.json")
+public class JsonDataFormatConfiguration {
+
+ /**
+ * Lookup and use the existing ObjectMapper with the given id when using
+ * Jackson.
+ */
+ private String objectMapper;
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Which json library to use such. Is by default xstream
+ */
+ private JsonLibrary library;
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * When marshalling a POJO to JSON you might want to exclude certain fields
+ * from the JSON output. With Jackson you can use JSON views to accomplish
+ * this. This option is to refer to the class which has JsonView annotations
+ */
+ private Class jsonView;
+ /**
+ * If you want to marshal a pojo to JSON and the pojo has some fields with
+ * null values. And you want to skip these null values you can set this
+ * option to NOT_NULL
+ */
+ private String include;
+ /**
+ * Used for JMS users to allow the JMSType header from the JMS spec to
+ * specify a FQN classname to use to unmarshal to.
+ */
+ private Boolean allowJmsType;
+ /**
+ * Refers to a custom collection type to lookup in the registry to use. This
+ * option should rarely be used but allows to use different collection types
+ * than java.util.Collection based as default.
+ */
+ private String collectionTypeName;
+ /**
+ * To unarmshal to a List of Map or a List of Pojo.
+ */
+ private Boolean useList;
+ /**
+ * Whether to enable the JAXB annotations module when using jackson. When
+ * enabled then JAXB annotations can be used by Jackson.
+ */
+ private Boolean enableJaxbAnnotationModule;
+ /**
+ * To use custom Jackson modules com.fasterxml.jackson.databind.Module
+ * specified as a String with FQN class names. Multiple classes can be
+ * separated by comma.
+ */
+ private String moduleClassNames;
+ /**
+ * To use custom Jackson modules referred from the Camel registry. Multiple
+ * modules can be separated by comma.
+ */
+ private String moduleRefs;
+ /**
+ * Set of features to enable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String enableFeatures;
+ /**
+ * Set of features to disable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String disableFeatures;
+ /**
+ * Adds permissions that controls which Java packages and classes XStream is
+ * allowed to use during unmarshal from xml/json to Java beans. A permission
+ * must be configured either here or globally using a JVM system property.
+ * The permission can be specified in a syntax where a plus sign is allow
+ * and minus sign is deny. Wildcards is supported by using . as prefix. For
+ * example to allow com.foo and all subpackages then specfy com.foo..
+ * Multiple permissions can be configured separated by comma such as
+ * com.foo.-com.foo.bar.MySecretBean. The following default permission is
+ * always included: -java.lang.java.util. unless its overridden by
+ * specifying a JVM system property with they key
+ * org.apache.camel.xstream.permissions.
+ */
+ private String permissions;
+
+ public String getObjectMapper() {
+ return objectMapper;
+ }
+
+ public void setObjectMapper(String objectMapper) {
+ this.objectMapper = objectMapper;
+ }
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public JsonLibrary getLibrary() {
+ return library;
+ }
+
+ public void setLibrary(JsonLibrary library) {
+ this.library = library;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Class getJsonView() {
+ return jsonView;
+ }
+
+ public void setJsonView(Class jsonView) {
+ this.jsonView = jsonView;
+ }
+
+ public String getInclude() {
+ return include;
+ }
+
+ public void setInclude(String include) {
+ this.include = include;
+ }
+
+ public Boolean getAllowJmsType() {
+ return allowJmsType;
+ }
+
+ public void setAllowJmsType(Boolean allowJmsType) {
+ this.allowJmsType = allowJmsType;
+ }
+
+ public String getCollectionTypeName() {
+ return collectionTypeName;
+ }
+
+ public void setCollectionTypeName(String collectionTypeName) {
+ this.collectionTypeName = collectionTypeName;
+ }
+
+ public Boolean getUseList() {
+ return useList;
+ }
+
+ public void setUseList(Boolean useList) {
+ this.useList = useList;
+ }
+
+ public Boolean getEnableJaxbAnnotationModule() {
+ return enableJaxbAnnotationModule;
+ }
+
+ public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
+ this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
+ }
+
+ public String getModuleClassNames() {
+ return moduleClassNames;
+ }
+
+ public void setModuleClassNames(String moduleClassNames) {
+ this.moduleClassNames = moduleClassNames;
+ }
+
+ public String getModuleRefs() {
+ return moduleRefs;
+ }
+
+ public void setModuleRefs(String moduleRefs) {
+ this.moduleRefs = moduleRefs;
+ }
+
+ public String getEnableFeatures() {
+ return enableFeatures;
+ }
+
+ public void setEnableFeatures(String enableFeatures) {
+ this.enableFeatures = enableFeatures;
+ }
+
+ public String getDisableFeatures() {
+ return disableFeatures;
+ }
+
+ public void setDisableFeatures(String disableFeatures) {
+ this.disableFeatures = disableFeatures;
+ }
+
+ public String getPermissions() {
+ return permissions;
+ }
+
+ public void setPermissions(String permissions) {
+ this.permissions = permissions;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..065a531
--- /dev/null
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.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.xstream.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.xstream.XStreamDataFormat;
+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(XStreamDataFormatConfiguration.class)
+public class XStreamDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(XStreamDataFormat.class)
+ public XStreamDataFormat configureXStreamDataFormat(
+ CamelContext camelContext,
+ XStreamDataFormatConfiguration configuration) throws Exception {
+ XStreamDataFormat dataformat = new XStreamDataFormat();
+ 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-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
new file mode 100644
index 0000000..a8236e0
--- /dev/null
+++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java
@@ -0,0 +1,159 @@
+/**
+ * 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.xstream.springboot;
+
+import java.util.List;
+import java.util.Map;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel XStream support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.xstream")
+public class XStreamDataFormatConfiguration {
+
+ /**
+ * Adds permissions that controls which Java packages and classes XStream is
+ * allowed to use during unmarshal from xml/json to Java beans. A permission
+ * must be configured either here or globally using a JVM system property.
+ * The permission can be specified in a syntax where a plus sign is allow
+ * and minus sign is deny. Wildcards is supported by using . as prefix. For
+ * example to allow com.foo and all subpackages then specfy com.foo..
+ * Multiple permissions can be configured separated by comma such as
+ * com.foo.-com.foo.bar.MySecretBean. The following default permission is
+ * always included: -java.lang.java.util. unless its overridden by
+ * specifying a JVM system property with they key
+ * org.apache.camel.xstream.permissions.
+ */
+ private String permissions;
+ /**
+ * Sets the encoding to use
+ */
+ private String encoding;
+ /**
+ * To use a custom XStream driver. The instance must be of type
+ * com.thoughtworks.xstream.io.HierarchicalStreamDriver
+ */
+ private String driver;
+ /**
+ * To refer to a custom XStream driver to lookup in the registry. The
+ * instance must be of type
+ * com.thoughtworks.xstream.io.HierarchicalStreamDriver
+ */
+ private String driverRef;
+ /**
+ * Mode for dealing with duplicate references The possible values are:
+ * NO_REFERENCES ID_REFERENCES XPATH_RELATIVE_REFERENCES
+ * XPATH_ABSOLUTE_REFERENCES SINGLE_NODE_XPATH_RELATIVE_REFERENCES
+ * SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES
+ */
+ private String mode;
+ /**
+ * List of class names for using custom XStream converters. The classes must
+ * be of type com.thoughtworks.xstream.converters.Converter
+ */
+ private List<java.lang.String> converters;
+ /**
+ * Alias a Class to a shorter name to be used in XML elements.
+ */
+ private Map<java.lang.String, java.lang.String> aliases;
+ /**
+ * Prevents a field from being serialized. To omit a field you must always
+ * provide the declaring type and not necessarily the type that is
+ * converted.
+ */
+ private Map<java.lang.String, java.lang.String[]> omitFields;
+ /**
+ * Adds a default implicit collection which is used for any unmapped XML
+ * tag.
+ */
+ private Map<java.lang.String, java.lang.String[]> implicitCollections;
+
+ public String getPermissions() {
+ return permissions;
+ }
+
+ public void setPermissions(String permissions) {
+ this.permissions = permissions;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
+ public String getDriver() {
+ return driver;
+ }
+
+ public void setDriver(String driver) {
+ this.driver = driver;
+ }
+
+ public String getDriverRef() {
+ return driverRef;
+ }
+
+ public void setDriverRef(String driverRef) {
+ this.driverRef = driverRef;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+
+ public List<String> getConverters() {
+ return converters;
+ }
+
+ public void setConverters(List<String> converters) {
+ this.converters = converters;
+ }
+
+ public Map<String, String> getAliases() {
+ return aliases;
+ }
+
+ public void setAliases(Map<String, String> aliases) {
+ this.aliases = aliases;
+ }
+
+ public Map<String, String[]> getOmitFields() {
+ return omitFields;
+ }
+
+ public void setOmitFields(Map<String, String[]> omitFields) {
+ this.omitFields = omitFields;
+ }
+
+ public Map<String, String[]> getImplicitCollections() {
+ return implicitCollections;
+ }
+
+ public void setImplicitCollections(Map<String, String[]> implicitCollections) {
+ this.implicitCollections = implicitCollections;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..5ebea8f
--- /dev/null
+++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.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.zipfile.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.zipfile.ZipFileDataFormat;
+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(ZipFileDataFormatConfiguration.class)
+public class ZipFileDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(ZipFileDataFormat.class)
+ public ZipFileDataFormat configureZipFileDataFormat(
+ CamelContext camelContext,
+ ZipFileDataFormatConfiguration configuration) throws Exception {
+ ZipFileDataFormat dataformat = new ZipFileDataFormat();
+ 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-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
new file mode 100644
index 0000000..b12703f
--- /dev/null
+++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java
@@ -0,0 +1,43 @@
+/**
+ * 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.zipfile.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Zip file support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.zipFile")
+public class ZipFileDataFormatConfiguration {
+
+ /**
+ * If the zip 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;
+
+ public Boolean getUsingIterator() {
+ return usingIterator;
+ }
+
+ public void setUsingIterator(Boolean usingIterator) {
+ this.usingIterator = usingIterator;
+ }
+}
\ No newline at end of file
[4/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
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/234f57d4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/234f57d4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/234f57d4
Branch: refs/heads/master
Commit: 234f57d43a093233eea6d51818765d45be043704
Parents: ccfe599
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Jun 10 12:04:07 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Jun 10 12:04:07 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 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index 90e9cd0..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index df614d4..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/GzipDataFormatConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 7bf60fd..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index ed78fab..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/SerializationDataFormatConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index a47e939..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 575b37e..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/StringDataFormatConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index c007de0..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index d6bd3be..0000000
--- a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 97a15f9..0000000
--- a/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 517051c..0000000
--- a/components/camel-avro/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 4c63075..0000000
--- a/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 2d0f624..0000000
--- a/components/camel-barcode/src/main/java/org/apache/camel/dataformat/barcode/springboot/BarcodeDataFormatConfiguration.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index c5cce32..0000000
--- a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 929deec..0000000
--- a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 105bedd..0000000
--- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index e3babce..0000000
--- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 68d13ae..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index befeff9..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 1fbb5df..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index a159408..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 6601ad2..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index ae5011d..0000000
--- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 22fff8b..0000000
--- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 7f3b7aa..0000000
--- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index d54eaaf..0000000
--- a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 05ff818..0000000
--- a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
- * 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/234f57d4/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
deleted file mode 100644
index 2ca8d7d..0000000
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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
[8/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
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
[2/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java
deleted file mode 100644
index 9b82553..0000000
--- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.jaxb.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.converter.jaxb.JaxbDataFormat;
-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(JaxbDataFormatConfiguration.class)
-public class JaxbDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(JaxbDataFormat.class)
- public JaxbDataFormat configureJaxbDataFormat(CamelContext camelContext,
- JaxbDataFormatConfiguration configuration) throws Exception {
- JaxbDataFormat dataformat = new JaxbDataFormat();
- 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/234f57d4/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
deleted file mode 100644
index ef5de07..0000000
--- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/**
- * 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.jaxb.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel JAXB support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.jaxb")
-public class JaxbDataFormatConfiguration {
-
- /**
- * Package name where your JAXB classes are located.
- */
- private String contextPath;
- /**
- * 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;
- /**
- * To enable pretty printing output nicely formatted. Is by default false.
- */
- private Boolean prettyPrint;
- /**
- * Whether to allow using ObjectFactory classes to create the POJO classes
- * during marshalling. This only applies to POJO classes that has not been
- * annotated with JAXB and providing jaxb.index descriptor files.
- */
- private Boolean objectFactory;
- /**
- * Whether to ignore JAXBElement elements - only needed to be set to false
- * in very special use-cases.
- */
- private Boolean ignoreJAXBElement;
- /**
- * Whether marhsalling must be java objects with JAXB annotations. And if
- * not then it fails. This option can be set to false to relax that such as
- * when the data is already in XML format.
- */
- private Boolean mustBeJAXBElement;
- /**
- * To ignore non xml characheters and replace them with an empty space.
- */
- private Boolean filterNonXmlChars;
- /**
- * To overrule and use a specific encoding
- */
- private String encoding;
- /**
- * To turn on marshalling XML fragment trees. By default JAXB looks for
- * XmlRootElement annotation on given class to operate on whole XML tree.
- * This is useful but not always - sometimes generated code does not have
- * XmlRootElement annotation sometimes you need unmarshall only part of
- * tree. In that case you can use partial unmarshalling. To enable this
- * behaviours you need set property partClass. Camel will pass this class to
- * JAXB's unmarshaler.
- */
- private Boolean fragment;
- /**
- * Name of class used for fragment parsing. See more details at the fragment
- * option.
- */
- private String partClass;
- /**
- * XML namespace to use for fragment parsing. See more details at the
- * fragment option.
- */
- private String partNamespace;
- /**
- * 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 use a custom xml stream writer.
- */
- private String xmlStreamWriterWrapper;
- /**
- * To define the location of the schema
- */
- private String schemaLocation;
- /**
- * To define the location of the namespaceless schema
- */
- private String noNamespaceSchemaLocation;
-
- public String getContextPath() {
- return contextPath;
- }
-
- public void setContextPath(String contextPath) {
- this.contextPath = contextPath;
- }
-
- public String getSchema() {
- return schema;
- }
-
- public void setSchema(String schema) {
- this.schema = schema;
- }
-
- public Boolean getPrettyPrint() {
- return prettyPrint;
- }
-
- public void setPrettyPrint(Boolean prettyPrint) {
- this.prettyPrint = prettyPrint;
- }
-
- public Boolean getObjectFactory() {
- return objectFactory;
- }
-
- public void setObjectFactory(Boolean objectFactory) {
- this.objectFactory = objectFactory;
- }
-
- public Boolean getIgnoreJAXBElement() {
- return ignoreJAXBElement;
- }
-
- public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) {
- this.ignoreJAXBElement = ignoreJAXBElement;
- }
-
- public Boolean getMustBeJAXBElement() {
- return mustBeJAXBElement;
- }
-
- public void setMustBeJAXBElement(Boolean mustBeJAXBElement) {
- this.mustBeJAXBElement = mustBeJAXBElement;
- }
-
- public Boolean getFilterNonXmlChars() {
- return filterNonXmlChars;
- }
-
- public void setFilterNonXmlChars(Boolean filterNonXmlChars) {
- this.filterNonXmlChars = filterNonXmlChars;
- }
-
- public String getEncoding() {
- return encoding;
- }
-
- public void setEncoding(String encoding) {
- this.encoding = encoding;
- }
-
- public Boolean getFragment() {
- return fragment;
- }
-
- public void setFragment(Boolean fragment) {
- this.fragment = fragment;
- }
-
- public String getPartClass() {
- return partClass;
- }
-
- public void setPartClass(String partClass) {
- this.partClass = partClass;
- }
-
- public String getPartNamespace() {
- return partNamespace;
- }
-
- public void setPartNamespace(String partNamespace) {
- this.partNamespace = partNamespace;
- }
-
- public String getNamespacePrefixRef() {
- return namespacePrefixRef;
- }
-
- public void setNamespacePrefixRef(String namespacePrefixRef) {
- this.namespacePrefixRef = namespacePrefixRef;
- }
-
- public String getXmlStreamWriterWrapper() {
- return xmlStreamWriterWrapper;
- }
-
- public void setXmlStreamWriterWrapper(String xmlStreamWriterWrapper) {
- this.xmlStreamWriterWrapper = xmlStreamWriterWrapper;
- }
-
- public String getSchemaLocation() {
- return schemaLocation;
- }
-
- public void setSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public String getNoNamespaceSchemaLocation() {
- return noNamespaceSchemaLocation;
- }
-
- public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) {
- this.noNamespaceSchemaLocation = noNamespaceSchemaLocation;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java
deleted file mode 100644
index efd6ca4..0000000
--- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.jibx.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.jibx.JibxDataFormat;
-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(JibxDataFormatConfiguration.class)
-public class JibxDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(JibxDataFormat.class)
- public JibxDataFormat configureJibxDataFormat(CamelContext camelContext,
- JibxDataFormatConfiguration configuration) throws Exception {
- JibxDataFormat dataformat = new JibxDataFormat();
- 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/234f57d4/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java
deleted file mode 100644
index 3f0742f..0000000
--- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * 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.jibx.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Jibx support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.jibx")
-public class JibxDataFormatConfiguration {
-
- /**
- * Class name to use when unmarshalling from XML to Java.
- */
- private String unmarshallClass;
- /**
- * To use a custom binding factory
- */
- private String bindingName;
-
- public String getUnmarshallClass() {
- return unmarshallClass;
- }
-
- public void setUnmarshallClass(String unmarshallClass) {
- this.unmarshallClass = unmarshallClass;
- }
-
- public String getBindingName() {
- return bindingName;
- }
-
- public void setBindingName(String bindingName) {
- this.bindingName = bindingName;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java
deleted file mode 100644
index ba84e01..0000000
--- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.lzf.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.lzf.LZFDataFormat;
-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(LZFDataFormatConfiguration.class)
-public class LZFDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(LZFDataFormat.class)
- public LZFDataFormat configureLZFDataFormat(CamelContext camelContext,
- LZFDataFormatConfiguration configuration) throws Exception {
- LZFDataFormat dataformat = new LZFDataFormat();
- 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/234f57d4/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java
deleted file mode 100644
index 8aa14e5..0000000
--- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.lzf.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel LZF support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.lzf")
-public class LZFDataFormatConfiguration {
-
- /**
- * Enable encoding (compress) using multiple processing cores.
- */
- private Boolean usingParallelCompression;
-
- public Boolean getUsingParallelCompression() {
- return usingParallelCompression;
- }
-
- public void setUsingParallelCompression(Boolean usingParallelCompression) {
- this.usingParallelCompression = usingParallelCompression;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
deleted file mode 100644
index 697355d..0000000
--- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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.mime.multipart.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.mime.multipart.MimeMultipartDataFormat;
-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(MimeMultipartDataFormatConfiguration.class)
-public class MimeMultipartDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MimeMultipartDataFormat.class)
- public MimeMultipartDataFormat configureMimeMultipartDataFormat(
- CamelContext camelContext,
- MimeMultipartDataFormatConfiguration configuration)
- throws Exception {
- MimeMultipartDataFormat dataformat = new MimeMultipartDataFormat();
- 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/234f57d4/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
deleted file mode 100644
index d2af309..0000000
--- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/**
- * 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.mime.multipart.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Mail support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.mime-multipart")
-public class MimeMultipartDataFormatConfiguration {
-
- /**
- * Specify the subtype of the MIME Multipart. Default is mixed.
- */
- private String multipartSubType;
- /**
- * Defines whether a message without attachment is also marshaled into a
- * MIME Multipart (with only one body part). Default is false.
- */
- private Boolean multipartWithoutAttachment;
- /**
- * Defines whether the MIME-Multipart headers are part of the message body
- * (true) or are set as Camel headers (false). Default is false.
- */
- private Boolean headersInline;
- /**
- * A regex that defines which Camel headers are also included as MIME
- * headers into the MIME multipart. This will only work if headersInline is
- * set to true. Default is to include no headers
- */
- private String includeHeaders;
- /**
- * Defines whether the content of binary parts in the MIME multipart is
- * binary (true) or Base-64 encoded (false) Default is false.
- */
- private Boolean binaryContent;
-
- public String getMultipartSubType() {
- return multipartSubType;
- }
-
- public void setMultipartSubType(String multipartSubType) {
- this.multipartSubType = multipartSubType;
- }
-
- public Boolean getMultipartWithoutAttachment() {
- return multipartWithoutAttachment;
- }
-
- public void setMultipartWithoutAttachment(Boolean multipartWithoutAttachment) {
- this.multipartWithoutAttachment = multipartWithoutAttachment;
- }
-
- public Boolean getHeadersInline() {
- return headersInline;
- }
-
- public void setHeadersInline(Boolean headersInline) {
- this.headersInline = headersInline;
- }
-
- public String getIncludeHeaders() {
- return includeHeaders;
- }
-
- public void setIncludeHeaders(String includeHeaders) {
- this.includeHeaders = includeHeaders;
- }
-
- public Boolean getBinaryContent() {
- return binaryContent;
- }
-
- public void setBinaryContent(Boolean binaryContent) {
- this.binaryContent = binaryContent;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java
deleted file mode 100644
index c522438..0000000
--- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.protobuf.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.protobuf.ProtobufDataFormat;
-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(ProtobufDataFormatConfiguration.class)
-public class ProtobufDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(ProtobufDataFormat.class)
- public ProtobufDataFormat configureProtobufDataFormat(
- CamelContext camelContext,
- ProtobufDataFormatConfiguration configuration) throws Exception {
- ProtobufDataFormat dataformat = new ProtobufDataFormat();
- 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/234f57d4/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java
deleted file mode 100644
index 4d06d4f..0000000
--- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.protobuf.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Components
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.protobuf")
-public class ProtobufDataFormatConfiguration {
-
- /**
- * Name of class to use when unarmshalling
- */
- private String instanceClass;
-
- public String getInstanceClass() {
- return instanceClass;
- }
-
- public void setInstanceClass(String instanceClass) {
- this.instanceClass = instanceClass;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java
deleted file mode 100644
index c51f6e1..0000000
--- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.rss.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.rss.RssDataFormat;
-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(RssDataFormatConfiguration.class)
-public class RssDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(RssDataFormat.class)
- public RssDataFormat configureRssDataFormat(CamelContext camelContext,
- RssDataFormatConfiguration configuration) throws Exception {
- RssDataFormat dataformat = new RssDataFormat();
- 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/234f57d4/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java
deleted file mode 100644
index 2616eba..0000000
--- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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.rss.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel RSS support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.rss")
-public class RssDataFormatConfiguration {
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java
deleted file mode 100644
index a38d523..0000000
--- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.snakeyaml.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat;
-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(SnakeYAMLDataFormatConfiguration.class)
-public class SnakeYAMLDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(SnakeYAMLDataFormat.class)
- public SnakeYAMLDataFormat configureSnakeYAMLDataFormat(
- CamelContext camelContext,
- SnakeYAMLDataFormatConfiguration configuration) throws Exception {
- SnakeYAMLDataFormat dataformat = new SnakeYAMLDataFormat();
- 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/234f57d4/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
deleted file mode 100644
index 812ab2d..0000000
--- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * 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.snakeyaml.springboot;
-
-import org.apache.camel.model.dataformat.YAMLLibrary;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel SnakeYAML support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.yaml")
-public class SnakeYAMLDataFormatConfiguration {
-
- /**
- * Which yaml library to use such. Is by default SnakeYAML
- */
- private YAMLLibrary library;
- /**
- * Class name of the java type to use when unarmshalling
- */
- private String unmarshalTypeName;
- /**
- * BaseConstructor to construct incoming documents.
- */
- private String constructor;
- /**
- * Representer to emit outgoing objects.
- */
- private String representer;
- /**
- * DumperOptions to configure outgoing objects.
- */
- private String dumperOptions;
- /**
- * Resolver to detect implicit type
- */
- private String resolver;
- /**
- * Use ApplicationContextClassLoader as custom ClassLoader
- */
- private Boolean useApplicationContextClassLoader;
- /**
- * Force the emitter to produce a pretty YAML document when using the flow
- * style.
- */
- private Boolean prettyFlow;
-
- public YAMLLibrary getLibrary() {
- return library;
- }
-
- public void setLibrary(YAMLLibrary library) {
- this.library = library;
- }
-
- public String getUnmarshalTypeName() {
- return unmarshalTypeName;
- }
-
- public void setUnmarshalTypeName(String unmarshalTypeName) {
- this.unmarshalTypeName = unmarshalTypeName;
- }
-
- public String getConstructor() {
- return constructor;
- }
-
- public void setConstructor(String constructor) {
- this.constructor = constructor;
- }
-
- public String getRepresenter() {
- return representer;
- }
-
- public void setRepresenter(String representer) {
- this.representer = representer;
- }
-
- public String getDumperOptions() {
- return dumperOptions;
- }
-
- public void setDumperOptions(String dumperOptions) {
- this.dumperOptions = dumperOptions;
- }
-
- public String getResolver() {
- return resolver;
- }
-
- public void setResolver(String resolver) {
- this.resolver = resolver;
- }
-
- public Boolean getUseApplicationContextClassLoader() {
- return useApplicationContextClassLoader;
- }
-
- public void setUseApplicationContextClassLoader(
- Boolean useApplicationContextClassLoader) {
- this.useApplicationContextClassLoader = useApplicationContextClassLoader;
- }
-
- public Boolean getPrettyFlow() {
- return prettyFlow;
- }
-
- public void setPrettyFlow(Boolean prettyFlow) {
- this.prettyFlow = prettyFlow;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java
deleted file mode 100644
index 68af579..0000000
--- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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 java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.soap.SoapJaxbDataFormat;
-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(SoapJaxbDataFormatConfiguration.class)
-public class SoapJaxbDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(SoapJaxbDataFormat.class)
- public SoapJaxbDataFormat configureSoapJaxbDataFormat(
- CamelContext camelContext,
- SoapJaxbDataFormatConfiguration configuration) throws Exception {
- SoapJaxbDataFormat dataformat = new SoapJaxbDataFormat();
- 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/234f57d4/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
deleted file mode 100644
index 4acfcf1..0000000
--- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
- * 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;
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index 3b78a10..0000000
--- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 12dec5f..0000000
--- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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 {
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index 4985a3b..0000000
--- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 8d4a802..0000000
--- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * 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;
-
- public String getDataObjectType() {
- return dataObjectType;
- }
-
- public void setDataObjectType(String dataObjectType) {
- this.dataObjectType = dataObjectType;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index ae88b60..0000000
--- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 313b008..0000000
--- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * 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;
-
- public Boolean getUsingIterator() {
- return usingIterator;
- }
-
- public void setUsingIterator(Boolean usingIterator) {
- this.usingIterator = usingIterator;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index e70d780..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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,
- 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/234f57d4/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
deleted file mode 100644
index 2711a90..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/**
- * 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;
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/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
deleted file mode 100644
index 66a7bf4..0000000
--- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * 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,
- false);
- IntrospectionSupport.setProperties(camelContext,
- camelContext.getTypeConverter(), dataformat, parameters);
- return dataformat;
- }
-}
\ No newline at end of file
[3/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
deleted file mode 100644
index 3e0ef49..0000000
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/**
- * 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 org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Cryptographic Support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.crypto")
-public class CryptoDataFormatConfiguration {
-
- /**
- * The JCE algorithm name indicating the cryptographic algorithm that will
- * be used. Is by default DES/CBC/PKCS5Padding.
- */
- private String algorithm;
- /**
- * The name of the JCE Security Provider that should be used.
- */
- private String cryptoProvider;
- /**
- * Refers to the secret key to lookup from the register to use.
- */
- private String keyRef;
- /**
- * Refers to a byte array containing the Initialization Vector that will be
- * used to initialize the Cipher.
- */
- private String initVectorRef;
- /**
- * A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup
- * the type using the given name as a
- * java.security.spec.AlgorithmParameterSpec type.
- */
- private String algorithmParameterRef;
- /**
- * The size of the buffer used in the signature process.
- */
- private Integer buffersize;
- /**
- * The JCE algorithm name indicating the Message Authentication algorithm.
- */
- private String macAlgorithm;
- /**
- * Flag indicating that a Message Authentication Code should be calculated
- * and appended to the encrypted data.
- */
- private Boolean shouldAppendHMAC;
- /**
- * Flag indicating that the configured IV should be inlined into the
- * encrypted data stream. Is by default false.
- */
- private Boolean inline;
-
- public String getAlgorithm() {
- return algorithm;
- }
-
- public void setAlgorithm(String algorithm) {
- this.algorithm = algorithm;
- }
-
- public String getCryptoProvider() {
- return cryptoProvider;
- }
-
- public void setCryptoProvider(String cryptoProvider) {
- this.cryptoProvider = cryptoProvider;
- }
-
- public String getKeyRef() {
- return keyRef;
- }
-
- public void setKeyRef(String keyRef) {
- this.keyRef = keyRef;
- }
-
- public String getInitVectorRef() {
- return initVectorRef;
- }
-
- public void setInitVectorRef(String initVectorRef) {
- this.initVectorRef = initVectorRef;
- }
-
- public String getAlgorithmParameterRef() {
- return algorithmParameterRef;
- }
-
- public void setAlgorithmParameterRef(String algorithmParameterRef) {
- this.algorithmParameterRef = algorithmParameterRef;
- }
-
- public Integer getBuffersize() {
- return buffersize;
- }
-
- public void setBuffersize(Integer buffersize) {
- this.buffersize = buffersize;
- }
-
- public String getMacAlgorithm() {
- return macAlgorithm;
- }
-
- public void setMacAlgorithm(String macAlgorithm) {
- this.macAlgorithm = macAlgorithm;
- }
-
- public Boolean getShouldAppendHMAC() {
- return shouldAppendHMAC;
- }
-
- public void setShouldAppendHMAC(Boolean shouldAppendHMAC) {
- this.shouldAppendHMAC = shouldAppendHMAC;
- }
-
- public Boolean getInline() {
- return inline;
- }
-
- public void setInline(Boolean inline) {
- this.inline = inline;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java
deleted file mode 100644
index 49d35ba..0000000
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.PGPDataFormat;
-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(PGPDataFormatConfiguration.class)
-public class PGPDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(PGPDataFormat.class)
- public PGPDataFormat configurePGPDataFormat(CamelContext camelContext,
- PGPDataFormatConfiguration configuration) throws Exception {
- PGPDataFormat dataformat = new PGPDataFormat();
- 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/234f57d4/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
deleted file mode 100644
index 6efb3f5..0000000
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/**
- * 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 org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Cryptographic Support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.pgp")
-public class PGPDataFormatConfiguration {
-
- /**
- * The user ID of the key in the PGP keyring used during encryption. Can
- * also be only a part of a user ID. For example if the user ID is Test User
- * then you can use the part Test User or to address the user ID.
- */
- private String keyUserid;
- /**
- * User ID of the key in the PGP keyring used for signing (during
- * encryption) or signature verification (during decryption). During the
- * signature verification process the specified User ID restricts the public
- * keys from the public keyring which can be used for the verification. If
- * no User ID is specified for the signature verficiation then any public
- * key in the public keyring can be used for the verification. Can also be
- * only a part of a user ID. For example if the user ID is Test User then
- * you can use the part Test User or to address the User ID.
- */
- private String signatureKeyUserid;
- /**
- * Password used when opening the private key (not used for encryption).
- */
- private String password;
- /**
- * Password used when opening the private key used for signing (during
- * encryption).
- */
- private String signaturePassword;
- /**
- * Filename of the keyring; must be accessible as a classpath resource (but
- * you can specify a location in the file system by using the file: prefix).
- */
- private String keyFileName;
- /**
- * Filename of the keyring to use for signing (during encryption) or for
- * signature verification (during decryption); must be accessible as a
- * classpath resource (but you can specify a location in the file system by
- * using the file: prefix).
- */
- private String signatureKeyFileName;
- /**
- * Keyring used for signing/verifying as byte array. You can not set the
- * signatureKeyFileName and signatureKeyRing at the same time.
- */
- private String signatureKeyRing;
- /**
- * This option will cause PGP to base64 encode the encrypted text making it
- * available for copy/paste etc.
- */
- private Boolean armored;
- /**
- * Adds an integrity check/sign into the encryption file. The default value
- * is true.
- */
- private Boolean integrity;
- /**
- * Java Cryptography Extension (JCE) provider default is Bouncy Castle (BC).
- * Alternatively you can use for example the IAIK JCE provider; in this case
- * the provider must be registered beforehand and the Bouncy Castle provider
- * must not be registered beforehand. The Sun JCE provider does not work.
- */
- private String provider;
- /**
- * Symmetric key encryption algorithm; possible values are defined in
- * org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags; for example 2 (= TRIPLE
- * DES) 3 (= CAST5) 4 (= BLOWFISH) 6 (= DES) 7 (= AES_128). Only relevant
- * for encrypting.
- */
- private Integer algorithm;
- /**
- * Compression algorithm; possible values are defined in
- * org.bouncycastle.bcpg.CompressionAlgorithmTags; for example 0 (=
- * UNCOMPRESSED) 1 (= ZIP) 2 (= ZLIB) 3 (= BZIP2). Only relevant for
- * encrypting.
- */
- private Integer compressionAlgorithm;
- /**
- * Signature hash algorithm; possible values are defined in
- * org.bouncycastle.bcpg.HashAlgorithmTags; for example 2 (= SHA1) 8 (=
- * SHA256) 9 (= SHA384) 10 (= SHA512) 11 (=SHA224). Only relevant for
- * signing.
- */
- private Integer hashAlgorithm;
- /**
- * Controls the behavior for verifying the signature during unmarshaling.
- * There are 4 values possible: optional: The PGP message may or may not
- * contain signatures; if it does contain signatures then a signature
- * verification is executed. required: The PGP message must contain at least
- * one signature; if this is not the case an exception (PGPException) is
- * thrown. A signature verification is executed. ignore: Contained
- * signatures in the PGP message are ignored; no signature verification is
- * executed. no_signature_allowed: The PGP message must not contain a
- * signature; otherwise an exception (PGPException) is thrown.
- */
- private String signatureVerificationOption;
-
- public String getKeyUserid() {
- return keyUserid;
- }
-
- public void setKeyUserid(String keyUserid) {
- this.keyUserid = keyUserid;
- }
-
- public String getSignatureKeyUserid() {
- return signatureKeyUserid;
- }
-
- public void setSignatureKeyUserid(String signatureKeyUserid) {
- this.signatureKeyUserid = signatureKeyUserid;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public String getSignaturePassword() {
- return signaturePassword;
- }
-
- public void setSignaturePassword(String signaturePassword) {
- this.signaturePassword = signaturePassword;
- }
-
- public String getKeyFileName() {
- return keyFileName;
- }
-
- public void setKeyFileName(String keyFileName) {
- this.keyFileName = keyFileName;
- }
-
- public String getSignatureKeyFileName() {
- return signatureKeyFileName;
- }
-
- public void setSignatureKeyFileName(String signatureKeyFileName) {
- this.signatureKeyFileName = signatureKeyFileName;
- }
-
- public String getSignatureKeyRing() {
- return signatureKeyRing;
- }
-
- public void setSignatureKeyRing(String signatureKeyRing) {
- this.signatureKeyRing = signatureKeyRing;
- }
-
- public Boolean getArmored() {
- return armored;
- }
-
- public void setArmored(Boolean armored) {
- this.armored = armored;
- }
-
- public Boolean getIntegrity() {
- return integrity;
- }
-
- public void setIntegrity(Boolean integrity) {
- this.integrity = integrity;
- }
-
- public String getProvider() {
- return provider;
- }
-
- public void setProvider(String provider) {
- this.provider = provider;
- }
-
- public Integer getAlgorithm() {
- return algorithm;
- }
-
- public void setAlgorithm(Integer algorithm) {
- this.algorithm = algorithm;
- }
-
- public Integer getCompressionAlgorithm() {
- return compressionAlgorithm;
- }
-
- public void setCompressionAlgorithm(Integer compressionAlgorithm) {
- this.compressionAlgorithm = compressionAlgorithm;
- }
-
- public Integer getHashAlgorithm() {
- return hashAlgorithm;
- }
-
- public void setHashAlgorithm(Integer hashAlgorithm) {
- this.hashAlgorithm = hashAlgorithm;
- }
-
- public String getSignatureVerificationOption() {
- return signatureVerificationOption;
- }
-
- public void setSignatureVerificationOption(
- String signatureVerificationOption) {
- this.signatureVerificationOption = signatureVerificationOption;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java
deleted file mode 100644
index 40a778a..0000000
--- a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.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.csv.CsvDataFormat;
-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(CsvDataFormatConfiguration.class)
-public class CsvDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(CsvDataFormat.class)
- public CsvDataFormat configureCsvDataFormat(CamelContext camelContext,
- CsvDataFormatConfiguration configuration) throws Exception {
- CsvDataFormat dataformat = new CsvDataFormat();
- 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/234f57d4/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
deleted file mode 100644
index ce68a1f..0000000
--- a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
+++ /dev/null
@@ -1,310 +0,0 @@
-/**
- * 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.csv.springboot;
-
-import java.util.List;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel CSV data format support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.csv")
-public class CsvDataFormatConfiguration {
-
- /**
- * The reference format to use it will be updated with the other format
- * options the default value is CSVFormat.DEFAULT
- */
- private String formatRef;
- /**
- * The name of the format to use the default value is CSVFormat.DEFAULT
- */
- private String formatName;
- /**
- * Disables the comment marker of the reference format.
- */
- private Boolean commentMarkerDisabled;
- /**
- * Sets the comment marker of the reference format.
- */
- private String commentMarker;
- /**
- * Sets the delimiter to use. The default value is (comma)
- */
- private String delimiter;
- /**
- * Use for disabling using escape character
- */
- private Boolean escapeDisabled;
- /**
- * Sets the escape character to use
- */
- private String escape;
- /**
- * Use for disabling headers
- */
- private Boolean headerDisabled;
- /**
- * To configure the CSV headers
- */
- private List<java.lang.String> header;
- /**
- * Whether to allow missing column names.
- */
- private Boolean allowMissingColumnNames;
- /**
- * Whether to ignore empty lines.
- */
- private Boolean ignoreEmptyLines;
- /**
- * Whether to ignore surrounding spaces
- */
- private Boolean ignoreSurroundingSpaces;
- /**
- * Used to disable null strings
- */
- private Boolean nullStringDisabled;
- /**
- * Sets the null string
- */
- private String nullString;
- /**
- * Used to disable quotes
- */
- private Boolean quoteDisabled;
- /**
- * Sets the quote which by default is
- */
- private String quote;
- /**
- * Used for disabling record separator
- */
- private String recordSeparatorDisabled;
- /**
- * Sets the record separator (aka new line) which by default is \r\n (CRLF)
- */
- private String recordSeparator;
- /**
- * Whether to skip the header record in the output
- */
- private Boolean skipHeaderRecord;
- /**
- * Sets the quote mode
- */
- private String quoteMode;
- /**
- * Whether the unmarshalling should produce an iterator that reads the lines
- * on the fly or if all the lines must be read at one.
- */
- 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).
- */
- private Boolean useMaps;
- /**
- * Refers to a custom CsvRecordConverter to lookup from the registry to use.
- */
- private String recordConverterRef;
-
- public String getFormatRef() {
- return formatRef;
- }
-
- public void setFormatRef(String formatRef) {
- this.formatRef = formatRef;
- }
-
- public String getFormatName() {
- return formatName;
- }
-
- public void setFormatName(String formatName) {
- this.formatName = formatName;
- }
-
- public Boolean getCommentMarkerDisabled() {
- return commentMarkerDisabled;
- }
-
- public void setCommentMarkerDisabled(Boolean commentMarkerDisabled) {
- this.commentMarkerDisabled = commentMarkerDisabled;
- }
-
- public String getCommentMarker() {
- return commentMarker;
- }
-
- public void setCommentMarker(String commentMarker) {
- this.commentMarker = commentMarker;
- }
-
- public String getDelimiter() {
- return delimiter;
- }
-
- public void setDelimiter(String delimiter) {
- this.delimiter = delimiter;
- }
-
- public Boolean getEscapeDisabled() {
- return escapeDisabled;
- }
-
- public void setEscapeDisabled(Boolean escapeDisabled) {
- this.escapeDisabled = escapeDisabled;
- }
-
- public String getEscape() {
- return escape;
- }
-
- public void setEscape(String escape) {
- this.escape = escape;
- }
-
- public Boolean getHeaderDisabled() {
- return headerDisabled;
- }
-
- public void setHeaderDisabled(Boolean headerDisabled) {
- this.headerDisabled = headerDisabled;
- }
-
- public List<String> getHeader() {
- return header;
- }
-
- public void setHeader(List<String> header) {
- this.header = header;
- }
-
- public Boolean getAllowMissingColumnNames() {
- return allowMissingColumnNames;
- }
-
- public void setAllowMissingColumnNames(Boolean allowMissingColumnNames) {
- this.allowMissingColumnNames = allowMissingColumnNames;
- }
-
- public Boolean getIgnoreEmptyLines() {
- return ignoreEmptyLines;
- }
-
- public void setIgnoreEmptyLines(Boolean ignoreEmptyLines) {
- this.ignoreEmptyLines = ignoreEmptyLines;
- }
-
- public Boolean getIgnoreSurroundingSpaces() {
- return ignoreSurroundingSpaces;
- }
-
- public void setIgnoreSurroundingSpaces(Boolean ignoreSurroundingSpaces) {
- this.ignoreSurroundingSpaces = ignoreSurroundingSpaces;
- }
-
- public Boolean getNullStringDisabled() {
- return nullStringDisabled;
- }
-
- public void setNullStringDisabled(Boolean nullStringDisabled) {
- this.nullStringDisabled = nullStringDisabled;
- }
-
- public String getNullString() {
- return nullString;
- }
-
- public void setNullString(String nullString) {
- this.nullString = nullString;
- }
-
- public Boolean getQuoteDisabled() {
- return quoteDisabled;
- }
-
- public void setQuoteDisabled(Boolean quoteDisabled) {
- this.quoteDisabled = quoteDisabled;
- }
-
- public String getQuote() {
- return quote;
- }
-
- public void setQuote(String quote) {
- this.quote = quote;
- }
-
- public String getRecordSeparatorDisabled() {
- return recordSeparatorDisabled;
- }
-
- public void setRecordSeparatorDisabled(String recordSeparatorDisabled) {
- this.recordSeparatorDisabled = recordSeparatorDisabled;
- }
-
- public String getRecordSeparator() {
- return recordSeparator;
- }
-
- public void setRecordSeparator(String recordSeparator) {
- this.recordSeparator = recordSeparator;
- }
-
- public Boolean getSkipHeaderRecord() {
- return skipHeaderRecord;
- }
-
- public void setSkipHeaderRecord(Boolean skipHeaderRecord) {
- this.skipHeaderRecord = skipHeaderRecord;
- }
-
- public String getQuoteMode() {
- return quoteMode;
- }
-
- public void setQuoteMode(String quoteMode) {
- this.quoteMode = quoteMode;
- }
-
- public Boolean getLazyLoad() {
- return lazyLoad;
- }
-
- public void setLazyLoad(Boolean lazyLoad) {
- this.lazyLoad = lazyLoad;
- }
-
- public Boolean getUseMaps() {
- return useMaps;
- }
-
- public void setUseMaps(Boolean useMaps) {
- this.useMaps = useMaps;
- }
-
- public String getRecordConverterRef() {
- return recordConverterRef;
- }
-
- public void setRecordConverterRef(String recordConverterRef) {
- this.recordConverterRef = recordConverterRef;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java
deleted file mode 100644
index f49421c..0000000
--- a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.flatpack.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.flatpack.FlatpackDataFormat;
-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(FlatpackDataFormatConfiguration.class)
-public class FlatpackDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(FlatpackDataFormat.class)
- public FlatpackDataFormat configureFlatpackDataFormat(
- CamelContext camelContext,
- FlatpackDataFormatConfiguration configuration) throws Exception {
- FlatpackDataFormat dataformat = new FlatpackDataFormat();
- 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/234f57d4/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
deleted file mode 100644
index 49e41b0..0000000
--- a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * 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.flatpack.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel FlatPack support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.flatpack")
-public class FlatpackDataFormatConfiguration {
-
- /**
- * References to a custom parser factory to lookup in the registry
- */
- private String parserFactoryRef;
- /**
- * The flatpack pzmap configuration file. Can be omitted in simpler
- * situations but its preferred to use the pzmap.
- */
- private String definition;
- /**
- * Delimited or fixed. Is by default false = delimited
- */
- private Boolean fixed;
- /**
- * Whether the first line is ignored for delimited files (for the column
- * headers). Is by default true.
- */
- private Boolean ignoreFirstRecord;
- /**
- * If the text is qualified with a char such as "
- */
- private String textQualifier;
- /**
- * The delimiter char (could be ; or similar)
- */
- private String delimiter;
- /**
- * Allows for lines to be shorter than expected and ignores the extra
- * characters
- */
- private Boolean allowShortLines;
- /**
- * Allows for lines to be longer than expected and ignores the extra
- * characters.
- */
- private Boolean ignoreExtraColumns;
-
- public String getParserFactoryRef() {
- return parserFactoryRef;
- }
-
- public void setParserFactoryRef(String parserFactoryRef) {
- this.parserFactoryRef = parserFactoryRef;
- }
-
- public String getDefinition() {
- return definition;
- }
-
- public void setDefinition(String definition) {
- this.definition = definition;
- }
-
- public Boolean getFixed() {
- return fixed;
- }
-
- public void setFixed(Boolean fixed) {
- this.fixed = fixed;
- }
-
- public Boolean getIgnoreFirstRecord() {
- return ignoreFirstRecord;
- }
-
- public void setIgnoreFirstRecord(Boolean ignoreFirstRecord) {
- this.ignoreFirstRecord = ignoreFirstRecord;
- }
-
- public String getTextQualifier() {
- return textQualifier;
- }
-
- public void setTextQualifier(String textQualifier) {
- this.textQualifier = textQualifier;
- }
-
- public String getDelimiter() {
- return delimiter;
- }
-
- public void setDelimiter(String delimiter) {
- this.delimiter = delimiter;
- }
-
- public Boolean getAllowShortLines() {
- return allowShortLines;
- }
-
- public void setAllowShortLines(Boolean allowShortLines) {
- this.allowShortLines = allowShortLines;
- }
-
- public Boolean getIgnoreExtraColumns() {
- return ignoreExtraColumns;
- }
-
- public void setIgnoreExtraColumns(Boolean ignoreExtraColumns) {
- this.ignoreExtraColumns = ignoreExtraColumns;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java
deleted file mode 100644
index cc2d707..0000000
--- a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.gson.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.gson.GsonDataFormat;
-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(GsonDataFormatConfiguration.class)
-public class GsonDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(GsonDataFormat.class)
- public GsonDataFormat configureGsonDataFormat(CamelContext camelContext,
- GsonDataFormatConfiguration configuration) throws Exception {
- GsonDataFormat dataformat = new GsonDataFormat();
- 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/234f57d4/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
deleted file mode 100644
index 51dca10..0000000
--- a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/**
- * 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.gson.springboot;
-
-import org.apache.camel.model.dataformat.JsonLibrary;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Gson support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.json")
-public class GsonDataFormatConfiguration {
-
- /**
- * Lookup and use the existing ObjectMapper with the given id when using
- * Jackson.
- */
- private String objectMapper;
- /**
- * To enable pretty printing output nicely formatted. Is by default false.
- */
- private Boolean prettyPrint;
- /**
- * Which json library to use such. Is by default xstream
- */
- private JsonLibrary library;
- /**
- * Class name of the java type to use when unarmshalling
- */
- private String unmarshalTypeName;
- /**
- * When marshalling a POJO to JSON you might want to exclude certain fields
- * from the JSON output. With Jackson you can use JSON views to accomplish
- * this. This option is to refer to the class which has JsonView annotations
- */
- private Class jsonView;
- /**
- * If you want to marshal a pojo to JSON and the pojo has some fields with
- * null values. And you want to skip these null values you can set this
- * option to NOT_NULL
- */
- private String include;
- /**
- * Used for JMS users to allow the JMSType header from the JMS spec to
- * specify a FQN classname to use to unmarshal to.
- */
- private Boolean allowJmsType;
- /**
- * Refers to a custom collection type to lookup in the registry to use. This
- * option should rarely be used but allows to use different collection types
- * than java.util.Collection based as default.
- */
- private String collectionTypeName;
- /**
- * To unarmshal to a List of Map or a List of Pojo.
- */
- private Boolean useList;
- /**
- * Whether to enable the JAXB annotations module when using jackson. When
- * enabled then JAXB annotations can be used by Jackson.
- */
- private Boolean enableJaxbAnnotationModule;
- /**
- * To use custom Jackson modules com.fasterxml.jackson.databind.Module
- * specified as a String with FQN class names. Multiple classes can be
- * separated by comma.
- */
- private String moduleClassNames;
- /**
- * To use custom Jackson modules referred from the Camel registry. Multiple
- * modules can be separated by comma.
- */
- private String moduleRefs;
- /**
- * Set of features to enable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String enableFeatures;
- /**
- * Set of features to disable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String disableFeatures;
- /**
- * Adds permissions that controls which Java packages and classes XStream is
- * allowed to use during unmarshal from xml/json to Java beans. A permission
- * must be configured either here or globally using a JVM system property.
- * The permission can be specified in a syntax where a plus sign is allow
- * and minus sign is deny. Wildcards is supported by using . as prefix. For
- * example to allow com.foo and all subpackages then specfy com.foo..
- * Multiple permissions can be configured separated by comma such as
- * com.foo.-com.foo.bar.MySecretBean. The following default permission is
- * always included: -java.lang.java.util. unless its overridden by
- * specifying a JVM system property with they key
- * org.apache.camel.xstream.permissions.
- */
- private String permissions;
-
- public String getObjectMapper() {
- return objectMapper;
- }
-
- public void setObjectMapper(String objectMapper) {
- this.objectMapper = objectMapper;
- }
-
- public Boolean getPrettyPrint() {
- return prettyPrint;
- }
-
- public void setPrettyPrint(Boolean prettyPrint) {
- this.prettyPrint = prettyPrint;
- }
-
- public JsonLibrary getLibrary() {
- return library;
- }
-
- public void setLibrary(JsonLibrary library) {
- this.library = library;
- }
-
- public String getUnmarshalTypeName() {
- return unmarshalTypeName;
- }
-
- public void setUnmarshalTypeName(String unmarshalTypeName) {
- this.unmarshalTypeName = unmarshalTypeName;
- }
-
- public Class getJsonView() {
- return jsonView;
- }
-
- public void setJsonView(Class jsonView) {
- this.jsonView = jsonView;
- }
-
- public String getInclude() {
- return include;
- }
-
- public void setInclude(String include) {
- this.include = include;
- }
-
- public Boolean getAllowJmsType() {
- return allowJmsType;
- }
-
- public void setAllowJmsType(Boolean allowJmsType) {
- this.allowJmsType = allowJmsType;
- }
-
- public String getCollectionTypeName() {
- return collectionTypeName;
- }
-
- public void setCollectionTypeName(String collectionTypeName) {
- this.collectionTypeName = collectionTypeName;
- }
-
- public Boolean getUseList() {
- return useList;
- }
-
- public void setUseList(Boolean useList) {
- this.useList = useList;
- }
-
- public Boolean getEnableJaxbAnnotationModule() {
- return enableJaxbAnnotationModule;
- }
-
- public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
- this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
- }
-
- public String getModuleClassNames() {
- return moduleClassNames;
- }
-
- public void setModuleClassNames(String moduleClassNames) {
- this.moduleClassNames = moduleClassNames;
- }
-
- public String getModuleRefs() {
- return moduleRefs;
- }
-
- public void setModuleRefs(String moduleRefs) {
- this.moduleRefs = moduleRefs;
- }
-
- public String getEnableFeatures() {
- return enableFeatures;
- }
-
- public void setEnableFeatures(String enableFeatures) {
- this.enableFeatures = enableFeatures;
- }
-
- public String getDisableFeatures() {
- return disableFeatures;
- }
-
- public void setDisableFeatures(String disableFeatures) {
- this.disableFeatures = disableFeatures;
- }
-
- public String getPermissions() {
- return permissions;
- }
-
- public void setPermissions(String permissions) {
- this.permissions = permissions;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java
deleted file mode 100644
index cd6e2e6..0000000
--- a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.hessian.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.hessian.HessianDataFormat;
-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(HessianDataFormatConfiguration.class)
-public class HessianDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(HessianDataFormat.class)
- public HessianDataFormat configureHessianDataFormat(
- CamelContext camelContext,
- HessianDataFormatConfiguration configuration) throws Exception {
- HessianDataFormat dataformat = new HessianDataFormat();
- 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/234f57d4/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
deleted file mode 100644
index 4a24215..0000000
--- a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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.hessian.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Hessian serialization support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.hessian")
-public class HessianDataFormatConfiguration {
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java
deleted file mode 100644
index 5da004e..0000000
--- a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.hl7.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.hl7.HL7DataFormat;
-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(HL7DataFormatConfiguration.class)
-public class HL7DataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(HL7DataFormat.class)
- public HL7DataFormat configureHL7DataFormat(CamelContext camelContext,
- HL7DataFormatConfiguration configuration) throws Exception {
- HL7DataFormat dataformat = new HL7DataFormat();
- 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/234f57d4/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java
deleted file mode 100644
index 0982908..0000000
--- a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.hl7.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel HL7 support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.hl7")
-public class HL7DataFormatConfiguration {
-
- /**
- * Whether to validate the HL7 message Is by default true.
- */
- private Boolean validate;
-
- public Boolean getValidate() {
- return validate;
- }
-
- public void setValidate(Boolean validate) {
- this.validate = validate;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java
deleted file mode 100644
index c1fd37e..0000000
--- a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * 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.ical.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.ical.ICalDataFormat;
-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(ICalDataFormatConfiguration.class)
-public class ICalDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(ICalDataFormat.class)
- public ICalDataFormat configureICalDataFormat(CamelContext camelContext,
- ICalDataFormatConfiguration configuration) throws Exception {
- ICalDataFormat dataformat = new ICalDataFormat();
- 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/234f57d4/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java
deleted file mode 100644
index f743da2..0000000
--- a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.ical.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel iCal component
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.ical")
-public class ICalDataFormatConfiguration {
-
- /**
- * Whether to validate.
- */
- private Boolean validating;
-
- public Boolean getValidating() {
- return validating;
- }
-
- public void setValidating(Boolean validating) {
- this.validating = validating;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
deleted file mode 100644
index 8fb7c4c..0000000
--- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.jackson.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.jackson.JacksonDataFormat;
-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(JacksonDataFormatConfiguration.class)
-public class JacksonDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(JacksonDataFormat.class)
- public JacksonDataFormat configureJacksonDataFormat(
- CamelContext camelContext,
- JacksonDataFormatConfiguration configuration) throws Exception {
- JacksonDataFormat dataformat = new JacksonDataFormat();
- 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/234f57d4/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
deleted file mode 100644
index ea0e61b..0000000
--- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/**
- * 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.jackson.springboot;
-
-import org.apache.camel.model.dataformat.JsonLibrary;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Jackson support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.json")
-public class JacksonDataFormatConfiguration {
-
- /**
- * Lookup and use the existing ObjectMapper with the given id when using
- * Jackson.
- */
- private String objectMapper;
- /**
- * To enable pretty printing output nicely formatted. Is by default false.
- */
- private Boolean prettyPrint;
- /**
- * Which json library to use such. Is by default xstream
- */
- private JsonLibrary library;
- /**
- * Class name of the java type to use when unarmshalling
- */
- private String unmarshalTypeName;
- /**
- * When marshalling a POJO to JSON you might want to exclude certain fields
- * from the JSON output. With Jackson you can use JSON views to accomplish
- * this. This option is to refer to the class which has JsonView annotations
- */
- private Class jsonView;
- /**
- * If you want to marshal a pojo to JSON and the pojo has some fields with
- * null values. And you want to skip these null values you can set this
- * option to NOT_NULL
- */
- private String include;
- /**
- * Used for JMS users to allow the JMSType header from the JMS spec to
- * specify a FQN classname to use to unmarshal to.
- */
- private Boolean allowJmsType;
- /**
- * Refers to a custom collection type to lookup in the registry to use. This
- * option should rarely be used but allows to use different collection types
- * than java.util.Collection based as default.
- */
- private String collectionTypeName;
- /**
- * To unarmshal to a List of Map or a List of Pojo.
- */
- private Boolean useList;
- /**
- * Whether to enable the JAXB annotations module when using jackson. When
- * enabled then JAXB annotations can be used by Jackson.
- */
- private Boolean enableJaxbAnnotationModule;
- /**
- * To use custom Jackson modules com.fasterxml.jackson.databind.Module
- * specified as a String with FQN class names. Multiple classes can be
- * separated by comma.
- */
- private String moduleClassNames;
- /**
- * To use custom Jackson modules referred from the Camel registry. Multiple
- * modules can be separated by comma.
- */
- private String moduleRefs;
- /**
- * Set of features to enable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String enableFeatures;
- /**
- * Set of features to disable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String disableFeatures;
- /**
- * Adds permissions that controls which Java packages and classes XStream is
- * allowed to use during unmarshal from xml/json to Java beans. A permission
- * must be configured either here or globally using a JVM system property.
- * The permission can be specified in a syntax where a plus sign is allow
- * and minus sign is deny. Wildcards is supported by using . as prefix. For
- * example to allow com.foo and all subpackages then specfy com.foo..
- * Multiple permissions can be configured separated by comma such as
- * com.foo.-com.foo.bar.MySecretBean. The following default permission is
- * always included: -java.lang.java.util. unless its overridden by
- * specifying a JVM system property with they key
- * org.apache.camel.xstream.permissions.
- */
- private String permissions;
-
- public String getObjectMapper() {
- return objectMapper;
- }
-
- public void setObjectMapper(String objectMapper) {
- this.objectMapper = objectMapper;
- }
-
- public Boolean getPrettyPrint() {
- return prettyPrint;
- }
-
- public void setPrettyPrint(Boolean prettyPrint) {
- this.prettyPrint = prettyPrint;
- }
-
- public JsonLibrary getLibrary() {
- return library;
- }
-
- public void setLibrary(JsonLibrary library) {
- this.library = library;
- }
-
- public String getUnmarshalTypeName() {
- return unmarshalTypeName;
- }
-
- public void setUnmarshalTypeName(String unmarshalTypeName) {
- this.unmarshalTypeName = unmarshalTypeName;
- }
-
- public Class getJsonView() {
- return jsonView;
- }
-
- public void setJsonView(Class jsonView) {
- this.jsonView = jsonView;
- }
-
- public String getInclude() {
- return include;
- }
-
- public void setInclude(String include) {
- this.include = include;
- }
-
- public Boolean getAllowJmsType() {
- return allowJmsType;
- }
-
- public void setAllowJmsType(Boolean allowJmsType) {
- this.allowJmsType = allowJmsType;
- }
-
- public String getCollectionTypeName() {
- return collectionTypeName;
- }
-
- public void setCollectionTypeName(String collectionTypeName) {
- this.collectionTypeName = collectionTypeName;
- }
-
- public Boolean getUseList() {
- return useList;
- }
-
- public void setUseList(Boolean useList) {
- this.useList = useList;
- }
-
- public Boolean getEnableJaxbAnnotationModule() {
- return enableJaxbAnnotationModule;
- }
-
- public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
- this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
- }
-
- public String getModuleClassNames() {
- return moduleClassNames;
- }
-
- public void setModuleClassNames(String moduleClassNames) {
- this.moduleClassNames = moduleClassNames;
- }
-
- public String getModuleRefs() {
- return moduleRefs;
- }
-
- public void setModuleRefs(String moduleRefs) {
- this.moduleRefs = moduleRefs;
- }
-
- public String getEnableFeatures() {
- return enableFeatures;
- }
-
- public void setEnableFeatures(String enableFeatures) {
- this.enableFeatures = enableFeatures;
- }
-
- public String getDisableFeatures() {
- return disableFeatures;
- }
-
- public void setDisableFeatures(String disableFeatures) {
- this.disableFeatures = disableFeatures;
- }
-
- public String getPermissions() {
- return permissions;
- }
-
- public void setPermissions(String permissions) {
- this.permissions = permissions;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java
deleted file mode 100644
index 9ac370f..0000000
--- a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * 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.jacksonxml.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.jacksonxml.JacksonXMLDataFormat;
-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(JacksonXMLDataFormatConfiguration.class)
-public class JacksonXMLDataFormatAutoConfiguration {
-
- @Bean
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(JacksonXMLDataFormat.class)
- public JacksonXMLDataFormat configureJacksonXMLDataFormat(
- CamelContext camelContext,
- JacksonXMLDataFormatConfiguration configuration) throws Exception {
- JacksonXMLDataFormat dataformat = new JacksonXMLDataFormat();
- 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/234f57d4/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
deleted file mode 100644
index 6909cb1..0000000
--- a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/**
- * 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.jacksonxml.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Jackson XML support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.jacksonxml")
-public class JacksonXMLDataFormatConfiguration {
-
- /**
- * Lookup and use the existing XmlMapper with the given id.
- */
- private String xmlMapper;
- /**
- * To enable pretty printing output nicely formatted. Is by default false.
- */
- private Boolean prettyPrint;
- /**
- * Class name of the java type to use when unarmshalling
- */
- private String unmarshalTypeName;
- /**
- * When marshalling a POJO to JSON you might want to exclude certain fields
- * from the JSON output. With Jackson you can use JSON views to accomplish
- * this. This option is to refer to the class which has JsonView annotations
- */
- private Class jsonView;
- /**
- * If you want to marshal a pojo to JSON and the pojo has some fields with
- * null values. And you want to skip these null values you can set this
- * option to NOT_NULL
- */
- private String include;
- /**
- * Used for JMS users to allow the JMSType header from the JMS spec to
- * specify a FQN classname to use to unmarshal to.
- */
- private Boolean allowJmsType;
- /**
- * Refers to a custom collection type to lookup in the registry to use. This
- * option should rarely be used but allows to use different collection types
- * than java.util.Collection based as default.
- */
- private String collectionTypeName;
- /**
- * To unarmshal to a List of Map or a List of Pojo.
- */
- private Boolean useList;
- /**
- * Whether to enable the JAXB annotations module when using jackson. When
- * enabled then JAXB annotations can be used by Jackson.
- */
- private Boolean enableJaxbAnnotationModule;
- /**
- * To use custom Jackson modules com.fasterxml.jackson.databind.Module
- * specified as a String with FQN class names. Multiple classes can be
- * separated by comma.
- */
- private String moduleClassNames;
- /**
- * To use custom Jackson modules referred from the Camel registry. Multiple
- * modules can be separated by comma.
- */
- private String moduleRefs;
- /**
- * Set of features to enable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String enableFeatures;
- /**
- * Set of features to disable on the Jackson
- * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
- * name that matches a enum from
- * com.fasterxml.jackson.databind.SerializationFeature
- * com.fasterxml.jackson.databind.DeserializationFeature or
- * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
- * separated by comma
- */
- private String disableFeatures;
-
- public String getXmlMapper() {
- return xmlMapper;
- }
-
- public void setXmlMapper(String xmlMapper) {
- this.xmlMapper = xmlMapper;
- }
-
- public Boolean getPrettyPrint() {
- return prettyPrint;
- }
-
- public void setPrettyPrint(Boolean prettyPrint) {
- this.prettyPrint = prettyPrint;
- }
-
- public String getUnmarshalTypeName() {
- return unmarshalTypeName;
- }
-
- public void setUnmarshalTypeName(String unmarshalTypeName) {
- this.unmarshalTypeName = unmarshalTypeName;
- }
-
- public Class getJsonView() {
- return jsonView;
- }
-
- public void setJsonView(Class jsonView) {
- this.jsonView = jsonView;
- }
-
- public String getInclude() {
- return include;
- }
-
- public void setInclude(String include) {
- this.include = include;
- }
-
- public Boolean getAllowJmsType() {
- return allowJmsType;
- }
-
- public void setAllowJmsType(Boolean allowJmsType) {
- this.allowJmsType = allowJmsType;
- }
-
- public String getCollectionTypeName() {
- return collectionTypeName;
- }
-
- public void setCollectionTypeName(String collectionTypeName) {
- this.collectionTypeName = collectionTypeName;
- }
-
- public Boolean getUseList() {
- return useList;
- }
-
- public void setUseList(Boolean useList) {
- this.useList = useList;
- }
-
- public Boolean getEnableJaxbAnnotationModule() {
- return enableJaxbAnnotationModule;
- }
-
- public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
- this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
- }
-
- public String getModuleClassNames() {
- return moduleClassNames;
- }
-
- public void setModuleClassNames(String moduleClassNames) {
- this.moduleClassNames = moduleClassNames;
- }
-
- public String getModuleRefs() {
- return moduleRefs;
- }
-
- public void setModuleRefs(String moduleRefs) {
- this.moduleRefs = moduleRefs;
- }
-
- public String getEnableFeatures() {
- return enableFeatures;
- }
-
- public void setEnableFeatures(String enableFeatures) {
- this.enableFeatures = enableFeatures;
- }
-
- public String getDisableFeatures() {
- return disableFeatures;
- }
-
- public void setDisableFeatures(String disableFeatures) {
- this.disableFeatures = disableFeatures;
- }
-}
\ No newline at end of file
[6/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..9b82553
--- /dev/null
+++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.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.jaxb.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.converter.jaxb.JaxbDataFormat;
+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(JaxbDataFormatConfiguration.class)
+public class JaxbDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(JaxbDataFormat.class)
+ public JaxbDataFormat configureJaxbDataFormat(CamelContext camelContext,
+ JaxbDataFormatConfiguration configuration) throws Exception {
+ JaxbDataFormat dataformat = new JaxbDataFormat();
+ 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-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
new file mode 100644
index 0000000..ef5de07
--- /dev/null
+++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java
@@ -0,0 +1,227 @@
+/**
+ * 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.jaxb.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel JAXB support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.jaxb")
+public class JaxbDataFormatConfiguration {
+
+ /**
+ * Package name where your JAXB classes are located.
+ */
+ private String contextPath;
+ /**
+ * 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;
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Whether to allow using ObjectFactory classes to create the POJO classes
+ * during marshalling. This only applies to POJO classes that has not been
+ * annotated with JAXB and providing jaxb.index descriptor files.
+ */
+ private Boolean objectFactory;
+ /**
+ * Whether to ignore JAXBElement elements - only needed to be set to false
+ * in very special use-cases.
+ */
+ private Boolean ignoreJAXBElement;
+ /**
+ * Whether marhsalling must be java objects with JAXB annotations. And if
+ * not then it fails. This option can be set to false to relax that such as
+ * when the data is already in XML format.
+ */
+ private Boolean mustBeJAXBElement;
+ /**
+ * To ignore non xml characheters and replace them with an empty space.
+ */
+ private Boolean filterNonXmlChars;
+ /**
+ * To overrule and use a specific encoding
+ */
+ private String encoding;
+ /**
+ * To turn on marshalling XML fragment trees. By default JAXB looks for
+ * XmlRootElement annotation on given class to operate on whole XML tree.
+ * This is useful but not always - sometimes generated code does not have
+ * XmlRootElement annotation sometimes you need unmarshall only part of
+ * tree. In that case you can use partial unmarshalling. To enable this
+ * behaviours you need set property partClass. Camel will pass this class to
+ * JAXB's unmarshaler.
+ */
+ private Boolean fragment;
+ /**
+ * Name of class used for fragment parsing. See more details at the fragment
+ * option.
+ */
+ private String partClass;
+ /**
+ * XML namespace to use for fragment parsing. See more details at the
+ * fragment option.
+ */
+ private String partNamespace;
+ /**
+ * 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 use a custom xml stream writer.
+ */
+ private String xmlStreamWriterWrapper;
+ /**
+ * To define the location of the schema
+ */
+ private String schemaLocation;
+ /**
+ * To define the location of the namespaceless schema
+ */
+ private String noNamespaceSchemaLocation;
+
+ public String getContextPath() {
+ return contextPath;
+ }
+
+ public void setContextPath(String contextPath) {
+ this.contextPath = contextPath;
+ }
+
+ public String getSchema() {
+ return schema;
+ }
+
+ public void setSchema(String schema) {
+ this.schema = schema;
+ }
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public Boolean getObjectFactory() {
+ return objectFactory;
+ }
+
+ public void setObjectFactory(Boolean objectFactory) {
+ this.objectFactory = objectFactory;
+ }
+
+ public Boolean getIgnoreJAXBElement() {
+ return ignoreJAXBElement;
+ }
+
+ public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) {
+ this.ignoreJAXBElement = ignoreJAXBElement;
+ }
+
+ public Boolean getMustBeJAXBElement() {
+ return mustBeJAXBElement;
+ }
+
+ public void setMustBeJAXBElement(Boolean mustBeJAXBElement) {
+ this.mustBeJAXBElement = mustBeJAXBElement;
+ }
+
+ public Boolean getFilterNonXmlChars() {
+ return filterNonXmlChars;
+ }
+
+ public void setFilterNonXmlChars(Boolean filterNonXmlChars) {
+ this.filterNonXmlChars = filterNonXmlChars;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
+ public Boolean getFragment() {
+ return fragment;
+ }
+
+ public void setFragment(Boolean fragment) {
+ this.fragment = fragment;
+ }
+
+ public String getPartClass() {
+ return partClass;
+ }
+
+ public void setPartClass(String partClass) {
+ this.partClass = partClass;
+ }
+
+ public String getPartNamespace() {
+ return partNamespace;
+ }
+
+ public void setPartNamespace(String partNamespace) {
+ this.partNamespace = partNamespace;
+ }
+
+ public String getNamespacePrefixRef() {
+ return namespacePrefixRef;
+ }
+
+ public void setNamespacePrefixRef(String namespacePrefixRef) {
+ this.namespacePrefixRef = namespacePrefixRef;
+ }
+
+ public String getXmlStreamWriterWrapper() {
+ return xmlStreamWriterWrapper;
+ }
+
+ public void setXmlStreamWriterWrapper(String xmlStreamWriterWrapper) {
+ this.xmlStreamWriterWrapper = xmlStreamWriterWrapper;
+ }
+
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public String getNoNamespaceSchemaLocation() {
+ return noNamespaceSchemaLocation;
+ }
+
+ public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) {
+ this.noNamespaceSchemaLocation = noNamespaceSchemaLocation;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..efd6ca4
--- /dev/null
+++ b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.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.jibx.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.jibx.JibxDataFormat;
+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(JibxDataFormatConfiguration.class)
+public class JibxDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(JibxDataFormat.class)
+ public JibxDataFormat configureJibxDataFormat(CamelContext camelContext,
+ JibxDataFormatConfiguration configuration) throws Exception {
+ JibxDataFormat dataformat = new JibxDataFormat();
+ 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-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java
new file mode 100644
index 0000000..3f0742f
--- /dev/null
+++ b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.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.jibx.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Jibx support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.jibx")
+public class JibxDataFormatConfiguration {
+
+ /**
+ * Class name to use when unmarshalling from XML to Java.
+ */
+ private String unmarshallClass;
+ /**
+ * To use a custom binding factory
+ */
+ private String bindingName;
+
+ public String getUnmarshallClass() {
+ return unmarshallClass;
+ }
+
+ public void setUnmarshallClass(String unmarshallClass) {
+ this.unmarshallClass = unmarshallClass;
+ }
+
+ public String getBindingName() {
+ return bindingName;
+ }
+
+ public void setBindingName(String bindingName) {
+ this.bindingName = bindingName;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..ba84e01
--- /dev/null
+++ b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.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.lzf.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.lzf.LZFDataFormat;
+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(LZFDataFormatConfiguration.class)
+public class LZFDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(LZFDataFormat.class)
+ public LZFDataFormat configureLZFDataFormat(CamelContext camelContext,
+ LZFDataFormatConfiguration configuration) throws Exception {
+ LZFDataFormat dataformat = new LZFDataFormat();
+ 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-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java
new file mode 100644
index 0000000..8aa14e5
--- /dev/null
+++ b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.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.lzf.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel LZF support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.lzf")
+public class LZFDataFormatConfiguration {
+
+ /**
+ * Enable encoding (compress) using multiple processing cores.
+ */
+ private Boolean usingParallelCompression;
+
+ public Boolean getUsingParallelCompression() {
+ return usingParallelCompression;
+ }
+
+ public void setUsingParallelCompression(Boolean usingParallelCompression) {
+ this.usingParallelCompression = usingParallelCompression;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..697355d
--- /dev/null
+++ b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.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.mime.multipart.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.mime.multipart.MimeMultipartDataFormat;
+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(MimeMultipartDataFormatConfiguration.class)
+public class MimeMultipartDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(MimeMultipartDataFormat.class)
+ public MimeMultipartDataFormat configureMimeMultipartDataFormat(
+ CamelContext camelContext,
+ MimeMultipartDataFormatConfiguration configuration)
+ throws Exception {
+ MimeMultipartDataFormat dataformat = new MimeMultipartDataFormat();
+ 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-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
new file mode 100644
index 0000000..d2af309
--- /dev/null
+++ b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
@@ -0,0 +1,94 @@
+/**
+ * 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.mime.multipart.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Mail support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.mime-multipart")
+public class MimeMultipartDataFormatConfiguration {
+
+ /**
+ * Specify the subtype of the MIME Multipart. Default is mixed.
+ */
+ private String multipartSubType;
+ /**
+ * Defines whether a message without attachment is also marshaled into a
+ * MIME Multipart (with only one body part). Default is false.
+ */
+ private Boolean multipartWithoutAttachment;
+ /**
+ * Defines whether the MIME-Multipart headers are part of the message body
+ * (true) or are set as Camel headers (false). Default is false.
+ */
+ private Boolean headersInline;
+ /**
+ * A regex that defines which Camel headers are also included as MIME
+ * headers into the MIME multipart. This will only work if headersInline is
+ * set to true. Default is to include no headers
+ */
+ private String includeHeaders;
+ /**
+ * Defines whether the content of binary parts in the MIME multipart is
+ * binary (true) or Base-64 encoded (false) Default is false.
+ */
+ private Boolean binaryContent;
+
+ public String getMultipartSubType() {
+ return multipartSubType;
+ }
+
+ public void setMultipartSubType(String multipartSubType) {
+ this.multipartSubType = multipartSubType;
+ }
+
+ public Boolean getMultipartWithoutAttachment() {
+ return multipartWithoutAttachment;
+ }
+
+ public void setMultipartWithoutAttachment(Boolean multipartWithoutAttachment) {
+ this.multipartWithoutAttachment = multipartWithoutAttachment;
+ }
+
+ public Boolean getHeadersInline() {
+ return headersInline;
+ }
+
+ public void setHeadersInline(Boolean headersInline) {
+ this.headersInline = headersInline;
+ }
+
+ public String getIncludeHeaders() {
+ return includeHeaders;
+ }
+
+ public void setIncludeHeaders(String includeHeaders) {
+ this.includeHeaders = includeHeaders;
+ }
+
+ public Boolean getBinaryContent() {
+ return binaryContent;
+ }
+
+ public void setBinaryContent(Boolean binaryContent) {
+ this.binaryContent = binaryContent;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..c522438
--- /dev/null
+++ b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.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.protobuf.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.protobuf.ProtobufDataFormat;
+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(ProtobufDataFormatConfiguration.class)
+public class ProtobufDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(ProtobufDataFormat.class)
+ public ProtobufDataFormat configureProtobufDataFormat(
+ CamelContext camelContext,
+ ProtobufDataFormatConfiguration configuration) throws Exception {
+ ProtobufDataFormat dataformat = new ProtobufDataFormat();
+ 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-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java
new file mode 100644
index 0000000..4d06d4f
--- /dev/null
+++ b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.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.protobuf.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Components
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.protobuf")
+public class ProtobufDataFormatConfiguration {
+
+ /**
+ * Name of class to use when unarmshalling
+ */
+ private String instanceClass;
+
+ public String getInstanceClass() {
+ return instanceClass;
+ }
+
+ public void setInstanceClass(String instanceClass) {
+ this.instanceClass = instanceClass;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..c51f6e1
--- /dev/null
+++ b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.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.rss.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.rss.RssDataFormat;
+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(RssDataFormatConfiguration.class)
+public class RssDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(RssDataFormat.class)
+ public RssDataFormat configureRssDataFormat(CamelContext camelContext,
+ RssDataFormatConfiguration configuration) throws Exception {
+ RssDataFormat dataformat = new RssDataFormat();
+ 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-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java
new file mode 100644
index 0000000..2616eba
--- /dev/null
+++ b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.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.dataformat.rss.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel RSS support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.rss")
+public class RssDataFormatConfiguration {
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..a38d523
--- /dev/null
+++ b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.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.component.snakeyaml.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat;
+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(SnakeYAMLDataFormatConfiguration.class)
+public class SnakeYAMLDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(SnakeYAMLDataFormat.class)
+ public SnakeYAMLDataFormat configureSnakeYAMLDataFormat(
+ CamelContext camelContext,
+ SnakeYAMLDataFormatConfiguration configuration) throws Exception {
+ SnakeYAMLDataFormat dataformat = new SnakeYAMLDataFormat();
+ 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-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
new file mode 100644
index 0000000..812ab2d
--- /dev/null
+++ b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java
@@ -0,0 +1,128 @@
+/**
+ * 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.snakeyaml.springboot;
+
+import org.apache.camel.model.dataformat.YAMLLibrary;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel SnakeYAML support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.yaml")
+public class SnakeYAMLDataFormatConfiguration {
+
+ /**
+ * Which yaml library to use such. Is by default SnakeYAML
+ */
+ private YAMLLibrary library;
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * BaseConstructor to construct incoming documents.
+ */
+ private String constructor;
+ /**
+ * Representer to emit outgoing objects.
+ */
+ private String representer;
+ /**
+ * DumperOptions to configure outgoing objects.
+ */
+ private String dumperOptions;
+ /**
+ * Resolver to detect implicit type
+ */
+ private String resolver;
+ /**
+ * Use ApplicationContextClassLoader as custom ClassLoader
+ */
+ private Boolean useApplicationContextClassLoader;
+ /**
+ * Force the emitter to produce a pretty YAML document when using the flow
+ * style.
+ */
+ private Boolean prettyFlow;
+
+ public YAMLLibrary getLibrary() {
+ return library;
+ }
+
+ public void setLibrary(YAMLLibrary library) {
+ this.library = library;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public String getConstructor() {
+ return constructor;
+ }
+
+ public void setConstructor(String constructor) {
+ this.constructor = constructor;
+ }
+
+ public String getRepresenter() {
+ return representer;
+ }
+
+ public void setRepresenter(String representer) {
+ this.representer = representer;
+ }
+
+ public String getDumperOptions() {
+ return dumperOptions;
+ }
+
+ public void setDumperOptions(String dumperOptions) {
+ this.dumperOptions = dumperOptions;
+ }
+
+ public String getResolver() {
+ return resolver;
+ }
+
+ public void setResolver(String resolver) {
+ this.resolver = resolver;
+ }
+
+ public Boolean getUseApplicationContextClassLoader() {
+ return useApplicationContextClassLoader;
+ }
+
+ public void setUseApplicationContextClassLoader(
+ Boolean useApplicationContextClassLoader) {
+ this.useApplicationContextClassLoader = useApplicationContextClassLoader;
+ }
+
+ public Boolean getPrettyFlow() {
+ return prettyFlow;
+ }
+
+ public void setPrettyFlow(Boolean prettyFlow) {
+ this.prettyFlow = prettyFlow;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..68af579
--- /dev/null
+++ b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.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.soap.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.soap.SoapJaxbDataFormat;
+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(SoapJaxbDataFormatConfiguration.class)
+public class SoapJaxbDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(SoapJaxbDataFormat.class)
+ public SoapJaxbDataFormat configureSoapJaxbDataFormat(
+ CamelContext camelContext,
+ SoapJaxbDataFormatConfiguration configuration) throws Exception {
+ SoapJaxbDataFormat dataformat = new SoapJaxbDataFormat();
+ 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-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..4acfcf1
--- /dev/null
+++ b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java
@@ -0,0 +1,122 @@
+/**
+ * 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;
+
+ 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;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..3b78a10
--- /dev/null
+++ b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.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.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,
+ 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-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..12dec5f
--- /dev/null
+++ b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.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.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 {
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..4985a3b
--- /dev/null
+++ b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.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.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,
+ 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-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..8d4a802
--- /dev/null
+++ b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.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.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;
+
+ public String getDataObjectType() {
+ return dataObjectType;
+ }
+
+ public void setDataObjectType(String dataObjectType) {
+ this.dataObjectType = dataObjectType;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..ae88b60
--- /dev/null
+++ b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.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 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,
+ 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-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..313b008
--- /dev/null
+++ b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java
@@ -0,0 +1,43 @@
+/**
+ * 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;
+
+ public Boolean getUsingIterator() {
+ return usingIterator;
+ }
+
+ public void setUsingIterator(Boolean usingIterator) {
+ this.usingIterator = usingIterator;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..e70d780
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.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.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,
+ 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-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..2711a90
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java
@@ -0,0 +1,243 @@
+/**
+ * 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;
+
+ 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;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/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..66a7bf4
--- /dev/null
+++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.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.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,
+ false);
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), dataformat, parameters);
+ return dataformat;
+ }
+}
\ No newline at end of file
[7/8] camel git commit: CAMEL-10041: Generate spring-boot auto
configuration for all Camel data formats that has options that can be
configured.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
new file mode 100644
index 0000000..3e0ef49
--- /dev/null
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java
@@ -0,0 +1,143 @@
+/**
+ * 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 org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Cryptographic Support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.crypto")
+public class CryptoDataFormatConfiguration {
+
+ /**
+ * The JCE algorithm name indicating the cryptographic algorithm that will
+ * be used. Is by default DES/CBC/PKCS5Padding.
+ */
+ private String algorithm;
+ /**
+ * The name of the JCE Security Provider that should be used.
+ */
+ private String cryptoProvider;
+ /**
+ * Refers to the secret key to lookup from the register to use.
+ */
+ private String keyRef;
+ /**
+ * Refers to a byte array containing the Initialization Vector that will be
+ * used to initialize the Cipher.
+ */
+ private String initVectorRef;
+ /**
+ * A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup
+ * the type using the given name as a
+ * java.security.spec.AlgorithmParameterSpec type.
+ */
+ private String algorithmParameterRef;
+ /**
+ * The size of the buffer used in the signature process.
+ */
+ private Integer buffersize;
+ /**
+ * The JCE algorithm name indicating the Message Authentication algorithm.
+ */
+ private String macAlgorithm;
+ /**
+ * Flag indicating that a Message Authentication Code should be calculated
+ * and appended to the encrypted data.
+ */
+ private Boolean shouldAppendHMAC;
+ /**
+ * Flag indicating that the configured IV should be inlined into the
+ * encrypted data stream. Is by default false.
+ */
+ private Boolean inline;
+
+ public String getAlgorithm() {
+ return algorithm;
+ }
+
+ public void setAlgorithm(String algorithm) {
+ this.algorithm = algorithm;
+ }
+
+ public String getCryptoProvider() {
+ return cryptoProvider;
+ }
+
+ public void setCryptoProvider(String cryptoProvider) {
+ this.cryptoProvider = cryptoProvider;
+ }
+
+ public String getKeyRef() {
+ return keyRef;
+ }
+
+ public void setKeyRef(String keyRef) {
+ this.keyRef = keyRef;
+ }
+
+ public String getInitVectorRef() {
+ return initVectorRef;
+ }
+
+ public void setInitVectorRef(String initVectorRef) {
+ this.initVectorRef = initVectorRef;
+ }
+
+ public String getAlgorithmParameterRef() {
+ return algorithmParameterRef;
+ }
+
+ public void setAlgorithmParameterRef(String algorithmParameterRef) {
+ this.algorithmParameterRef = algorithmParameterRef;
+ }
+
+ public Integer getBuffersize() {
+ return buffersize;
+ }
+
+ public void setBuffersize(Integer buffersize) {
+ this.buffersize = buffersize;
+ }
+
+ public String getMacAlgorithm() {
+ return macAlgorithm;
+ }
+
+ public void setMacAlgorithm(String macAlgorithm) {
+ this.macAlgorithm = macAlgorithm;
+ }
+
+ public Boolean getShouldAppendHMAC() {
+ return shouldAppendHMAC;
+ }
+
+ public void setShouldAppendHMAC(Boolean shouldAppendHMAC) {
+ this.shouldAppendHMAC = shouldAppendHMAC;
+ }
+
+ public Boolean getInline() {
+ return inline;
+ }
+
+ public void setInline(Boolean inline) {
+ this.inline = inline;
+ }
+}
\ 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/PGPDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..49d35ba
--- /dev/null
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatAutoConfiguration.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.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.PGPDataFormat;
+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(PGPDataFormatConfiguration.class)
+public class PGPDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(PGPDataFormat.class)
+ public PGPDataFormat configurePGPDataFormat(CamelContext camelContext,
+ PGPDataFormatConfiguration configuration) throws Exception {
+ PGPDataFormat dataformat = new PGPDataFormat();
+ 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-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
new file mode 100644
index 0000000..6efb3f5
--- /dev/null
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java
@@ -0,0 +1,235 @@
+/**
+ * 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 org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Cryptographic Support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.pgp")
+public class PGPDataFormatConfiguration {
+
+ /**
+ * The user ID of the key in the PGP keyring used during encryption. Can
+ * also be only a part of a user ID. For example if the user ID is Test User
+ * then you can use the part Test User or to address the user ID.
+ */
+ private String keyUserid;
+ /**
+ * User ID of the key in the PGP keyring used for signing (during
+ * encryption) or signature verification (during decryption). During the
+ * signature verification process the specified User ID restricts the public
+ * keys from the public keyring which can be used for the verification. If
+ * no User ID is specified for the signature verficiation then any public
+ * key in the public keyring can be used for the verification. Can also be
+ * only a part of a user ID. For example if the user ID is Test User then
+ * you can use the part Test User or to address the User ID.
+ */
+ private String signatureKeyUserid;
+ /**
+ * Password used when opening the private key (not used for encryption).
+ */
+ private String password;
+ /**
+ * Password used when opening the private key used for signing (during
+ * encryption).
+ */
+ private String signaturePassword;
+ /**
+ * Filename of the keyring; must be accessible as a classpath resource (but
+ * you can specify a location in the file system by using the file: prefix).
+ */
+ private String keyFileName;
+ /**
+ * Filename of the keyring to use for signing (during encryption) or for
+ * signature verification (during decryption); must be accessible as a
+ * classpath resource (but you can specify a location in the file system by
+ * using the file: prefix).
+ */
+ private String signatureKeyFileName;
+ /**
+ * Keyring used for signing/verifying as byte array. You can not set the
+ * signatureKeyFileName and signatureKeyRing at the same time.
+ */
+ private String signatureKeyRing;
+ /**
+ * This option will cause PGP to base64 encode the encrypted text making it
+ * available for copy/paste etc.
+ */
+ private Boolean armored;
+ /**
+ * Adds an integrity check/sign into the encryption file. The default value
+ * is true.
+ */
+ private Boolean integrity;
+ /**
+ * Java Cryptography Extension (JCE) provider default is Bouncy Castle (BC).
+ * Alternatively you can use for example the IAIK JCE provider; in this case
+ * the provider must be registered beforehand and the Bouncy Castle provider
+ * must not be registered beforehand. The Sun JCE provider does not work.
+ */
+ private String provider;
+ /**
+ * Symmetric key encryption algorithm; possible values are defined in
+ * org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags; for example 2 (= TRIPLE
+ * DES) 3 (= CAST5) 4 (= BLOWFISH) 6 (= DES) 7 (= AES_128). Only relevant
+ * for encrypting.
+ */
+ private Integer algorithm;
+ /**
+ * Compression algorithm; possible values are defined in
+ * org.bouncycastle.bcpg.CompressionAlgorithmTags; for example 0 (=
+ * UNCOMPRESSED) 1 (= ZIP) 2 (= ZLIB) 3 (= BZIP2). Only relevant for
+ * encrypting.
+ */
+ private Integer compressionAlgorithm;
+ /**
+ * Signature hash algorithm; possible values are defined in
+ * org.bouncycastle.bcpg.HashAlgorithmTags; for example 2 (= SHA1) 8 (=
+ * SHA256) 9 (= SHA384) 10 (= SHA512) 11 (=SHA224). Only relevant for
+ * signing.
+ */
+ private Integer hashAlgorithm;
+ /**
+ * Controls the behavior for verifying the signature during unmarshaling.
+ * There are 4 values possible: optional: The PGP message may or may not
+ * contain signatures; if it does contain signatures then a signature
+ * verification is executed. required: The PGP message must contain at least
+ * one signature; if this is not the case an exception (PGPException) is
+ * thrown. A signature verification is executed. ignore: Contained
+ * signatures in the PGP message are ignored; no signature verification is
+ * executed. no_signature_allowed: The PGP message must not contain a
+ * signature; otherwise an exception (PGPException) is thrown.
+ */
+ private String signatureVerificationOption;
+
+ public String getKeyUserid() {
+ return keyUserid;
+ }
+
+ public void setKeyUserid(String keyUserid) {
+ this.keyUserid = keyUserid;
+ }
+
+ public String getSignatureKeyUserid() {
+ return signatureKeyUserid;
+ }
+
+ public void setSignatureKeyUserid(String signatureKeyUserid) {
+ this.signatureKeyUserid = signatureKeyUserid;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getSignaturePassword() {
+ return signaturePassword;
+ }
+
+ public void setSignaturePassword(String signaturePassword) {
+ this.signaturePassword = signaturePassword;
+ }
+
+ public String getKeyFileName() {
+ return keyFileName;
+ }
+
+ public void setKeyFileName(String keyFileName) {
+ this.keyFileName = keyFileName;
+ }
+
+ public String getSignatureKeyFileName() {
+ return signatureKeyFileName;
+ }
+
+ public void setSignatureKeyFileName(String signatureKeyFileName) {
+ this.signatureKeyFileName = signatureKeyFileName;
+ }
+
+ public String getSignatureKeyRing() {
+ return signatureKeyRing;
+ }
+
+ public void setSignatureKeyRing(String signatureKeyRing) {
+ this.signatureKeyRing = signatureKeyRing;
+ }
+
+ public Boolean getArmored() {
+ return armored;
+ }
+
+ public void setArmored(Boolean armored) {
+ this.armored = armored;
+ }
+
+ public Boolean getIntegrity() {
+ return integrity;
+ }
+
+ public void setIntegrity(Boolean integrity) {
+ this.integrity = integrity;
+ }
+
+ public String getProvider() {
+ return provider;
+ }
+
+ public void setProvider(String provider) {
+ this.provider = provider;
+ }
+
+ public Integer getAlgorithm() {
+ return algorithm;
+ }
+
+ public void setAlgorithm(Integer algorithm) {
+ this.algorithm = algorithm;
+ }
+
+ public Integer getCompressionAlgorithm() {
+ return compressionAlgorithm;
+ }
+
+ public void setCompressionAlgorithm(Integer compressionAlgorithm) {
+ this.compressionAlgorithm = compressionAlgorithm;
+ }
+
+ public Integer getHashAlgorithm() {
+ return hashAlgorithm;
+ }
+
+ public void setHashAlgorithm(Integer hashAlgorithm) {
+ this.hashAlgorithm = hashAlgorithm;
+ }
+
+ public String getSignatureVerificationOption() {
+ return signatureVerificationOption;
+ }
+
+ public void setSignatureVerificationOption(
+ String signatureVerificationOption) {
+ this.signatureVerificationOption = signatureVerificationOption;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..40a778a
--- /dev/null
+++ b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.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.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.csv.CsvDataFormat;
+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(CsvDataFormatConfiguration.class)
+public class CsvDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(CsvDataFormat.class)
+ public CsvDataFormat configureCsvDataFormat(CamelContext camelContext,
+ CsvDataFormatConfiguration configuration) throws Exception {
+ CsvDataFormat dataformat = new CsvDataFormat();
+ 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-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
new file mode 100644
index 0000000..ce68a1f
--- /dev/null
+++ b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java
@@ -0,0 +1,310 @@
+/**
+ * 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.csv.springboot;
+
+import java.util.List;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel CSV data format support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.csv")
+public class CsvDataFormatConfiguration {
+
+ /**
+ * The reference format to use it will be updated with the other format
+ * options the default value is CSVFormat.DEFAULT
+ */
+ private String formatRef;
+ /**
+ * The name of the format to use the default value is CSVFormat.DEFAULT
+ */
+ private String formatName;
+ /**
+ * Disables the comment marker of the reference format.
+ */
+ private Boolean commentMarkerDisabled;
+ /**
+ * Sets the comment marker of the reference format.
+ */
+ private String commentMarker;
+ /**
+ * Sets the delimiter to use. The default value is (comma)
+ */
+ private String delimiter;
+ /**
+ * Use for disabling using escape character
+ */
+ private Boolean escapeDisabled;
+ /**
+ * Sets the escape character to use
+ */
+ private String escape;
+ /**
+ * Use for disabling headers
+ */
+ private Boolean headerDisabled;
+ /**
+ * To configure the CSV headers
+ */
+ private List<java.lang.String> header;
+ /**
+ * Whether to allow missing column names.
+ */
+ private Boolean allowMissingColumnNames;
+ /**
+ * Whether to ignore empty lines.
+ */
+ private Boolean ignoreEmptyLines;
+ /**
+ * Whether to ignore surrounding spaces
+ */
+ private Boolean ignoreSurroundingSpaces;
+ /**
+ * Used to disable null strings
+ */
+ private Boolean nullStringDisabled;
+ /**
+ * Sets the null string
+ */
+ private String nullString;
+ /**
+ * Used to disable quotes
+ */
+ private Boolean quoteDisabled;
+ /**
+ * Sets the quote which by default is
+ */
+ private String quote;
+ /**
+ * Used for disabling record separator
+ */
+ private String recordSeparatorDisabled;
+ /**
+ * Sets the record separator (aka new line) which by default is \r\n (CRLF)
+ */
+ private String recordSeparator;
+ /**
+ * Whether to skip the header record in the output
+ */
+ private Boolean skipHeaderRecord;
+ /**
+ * Sets the quote mode
+ */
+ private String quoteMode;
+ /**
+ * Whether the unmarshalling should produce an iterator that reads the lines
+ * on the fly or if all the lines must be read at one.
+ */
+ 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).
+ */
+ private Boolean useMaps;
+ /**
+ * Refers to a custom CsvRecordConverter to lookup from the registry to use.
+ */
+ private String recordConverterRef;
+
+ public String getFormatRef() {
+ return formatRef;
+ }
+
+ public void setFormatRef(String formatRef) {
+ this.formatRef = formatRef;
+ }
+
+ public String getFormatName() {
+ return formatName;
+ }
+
+ public void setFormatName(String formatName) {
+ this.formatName = formatName;
+ }
+
+ public Boolean getCommentMarkerDisabled() {
+ return commentMarkerDisabled;
+ }
+
+ public void setCommentMarkerDisabled(Boolean commentMarkerDisabled) {
+ this.commentMarkerDisabled = commentMarkerDisabled;
+ }
+
+ public String getCommentMarker() {
+ return commentMarker;
+ }
+
+ public void setCommentMarker(String commentMarker) {
+ this.commentMarker = commentMarker;
+ }
+
+ public String getDelimiter() {
+ return delimiter;
+ }
+
+ public void setDelimiter(String delimiter) {
+ this.delimiter = delimiter;
+ }
+
+ public Boolean getEscapeDisabled() {
+ return escapeDisabled;
+ }
+
+ public void setEscapeDisabled(Boolean escapeDisabled) {
+ this.escapeDisabled = escapeDisabled;
+ }
+
+ public String getEscape() {
+ return escape;
+ }
+
+ public void setEscape(String escape) {
+ this.escape = escape;
+ }
+
+ public Boolean getHeaderDisabled() {
+ return headerDisabled;
+ }
+
+ public void setHeaderDisabled(Boolean headerDisabled) {
+ this.headerDisabled = headerDisabled;
+ }
+
+ public List<String> getHeader() {
+ return header;
+ }
+
+ public void setHeader(List<String> header) {
+ this.header = header;
+ }
+
+ public Boolean getAllowMissingColumnNames() {
+ return allowMissingColumnNames;
+ }
+
+ public void setAllowMissingColumnNames(Boolean allowMissingColumnNames) {
+ this.allowMissingColumnNames = allowMissingColumnNames;
+ }
+
+ public Boolean getIgnoreEmptyLines() {
+ return ignoreEmptyLines;
+ }
+
+ public void setIgnoreEmptyLines(Boolean ignoreEmptyLines) {
+ this.ignoreEmptyLines = ignoreEmptyLines;
+ }
+
+ public Boolean getIgnoreSurroundingSpaces() {
+ return ignoreSurroundingSpaces;
+ }
+
+ public void setIgnoreSurroundingSpaces(Boolean ignoreSurroundingSpaces) {
+ this.ignoreSurroundingSpaces = ignoreSurroundingSpaces;
+ }
+
+ public Boolean getNullStringDisabled() {
+ return nullStringDisabled;
+ }
+
+ public void setNullStringDisabled(Boolean nullStringDisabled) {
+ this.nullStringDisabled = nullStringDisabled;
+ }
+
+ public String getNullString() {
+ return nullString;
+ }
+
+ public void setNullString(String nullString) {
+ this.nullString = nullString;
+ }
+
+ public Boolean getQuoteDisabled() {
+ return quoteDisabled;
+ }
+
+ public void setQuoteDisabled(Boolean quoteDisabled) {
+ this.quoteDisabled = quoteDisabled;
+ }
+
+ public String getQuote() {
+ return quote;
+ }
+
+ public void setQuote(String quote) {
+ this.quote = quote;
+ }
+
+ public String getRecordSeparatorDisabled() {
+ return recordSeparatorDisabled;
+ }
+
+ public void setRecordSeparatorDisabled(String recordSeparatorDisabled) {
+ this.recordSeparatorDisabled = recordSeparatorDisabled;
+ }
+
+ public String getRecordSeparator() {
+ return recordSeparator;
+ }
+
+ public void setRecordSeparator(String recordSeparator) {
+ this.recordSeparator = recordSeparator;
+ }
+
+ public Boolean getSkipHeaderRecord() {
+ return skipHeaderRecord;
+ }
+
+ public void setSkipHeaderRecord(Boolean skipHeaderRecord) {
+ this.skipHeaderRecord = skipHeaderRecord;
+ }
+
+ public String getQuoteMode() {
+ return quoteMode;
+ }
+
+ public void setQuoteMode(String quoteMode) {
+ this.quoteMode = quoteMode;
+ }
+
+ public Boolean getLazyLoad() {
+ return lazyLoad;
+ }
+
+ public void setLazyLoad(Boolean lazyLoad) {
+ this.lazyLoad = lazyLoad;
+ }
+
+ public Boolean getUseMaps() {
+ return useMaps;
+ }
+
+ public void setUseMaps(Boolean useMaps) {
+ this.useMaps = useMaps;
+ }
+
+ public String getRecordConverterRef() {
+ return recordConverterRef;
+ }
+
+ public void setRecordConverterRef(String recordConverterRef) {
+ this.recordConverterRef = recordConverterRef;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..f49421c
--- /dev/null
+++ b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatAutoConfiguration.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.flatpack.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.flatpack.FlatpackDataFormat;
+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(FlatpackDataFormatConfiguration.class)
+public class FlatpackDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(FlatpackDataFormat.class)
+ public FlatpackDataFormat configureFlatpackDataFormat(
+ CamelContext camelContext,
+ FlatpackDataFormatConfiguration configuration) throws Exception {
+ FlatpackDataFormat dataformat = new FlatpackDataFormat();
+ 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-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
new file mode 100644
index 0000000..49e41b0
--- /dev/null
+++ b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java
@@ -0,0 +1,129 @@
+/**
+ * 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.flatpack.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel FlatPack support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.flatpack")
+public class FlatpackDataFormatConfiguration {
+
+ /**
+ * References to a custom parser factory to lookup in the registry
+ */
+ private String parserFactoryRef;
+ /**
+ * The flatpack pzmap configuration file. Can be omitted in simpler
+ * situations but its preferred to use the pzmap.
+ */
+ private String definition;
+ /**
+ * Delimited or fixed. Is by default false = delimited
+ */
+ private Boolean fixed;
+ /**
+ * Whether the first line is ignored for delimited files (for the column
+ * headers). Is by default true.
+ */
+ private Boolean ignoreFirstRecord;
+ /**
+ * If the text is qualified with a char such as "
+ */
+ private String textQualifier;
+ /**
+ * The delimiter char (could be ; or similar)
+ */
+ private String delimiter;
+ /**
+ * Allows for lines to be shorter than expected and ignores the extra
+ * characters
+ */
+ private Boolean allowShortLines;
+ /**
+ * Allows for lines to be longer than expected and ignores the extra
+ * characters.
+ */
+ private Boolean ignoreExtraColumns;
+
+ public String getParserFactoryRef() {
+ return parserFactoryRef;
+ }
+
+ public void setParserFactoryRef(String parserFactoryRef) {
+ this.parserFactoryRef = parserFactoryRef;
+ }
+
+ public String getDefinition() {
+ return definition;
+ }
+
+ public void setDefinition(String definition) {
+ this.definition = definition;
+ }
+
+ public Boolean getFixed() {
+ return fixed;
+ }
+
+ public void setFixed(Boolean fixed) {
+ this.fixed = fixed;
+ }
+
+ public Boolean getIgnoreFirstRecord() {
+ return ignoreFirstRecord;
+ }
+
+ public void setIgnoreFirstRecord(Boolean ignoreFirstRecord) {
+ this.ignoreFirstRecord = ignoreFirstRecord;
+ }
+
+ public String getTextQualifier() {
+ return textQualifier;
+ }
+
+ public void setTextQualifier(String textQualifier) {
+ this.textQualifier = textQualifier;
+ }
+
+ public String getDelimiter() {
+ return delimiter;
+ }
+
+ public void setDelimiter(String delimiter) {
+ this.delimiter = delimiter;
+ }
+
+ public Boolean getAllowShortLines() {
+ return allowShortLines;
+ }
+
+ public void setAllowShortLines(Boolean allowShortLines) {
+ this.allowShortLines = allowShortLines;
+ }
+
+ public Boolean getIgnoreExtraColumns() {
+ return ignoreExtraColumns;
+ }
+
+ public void setIgnoreExtraColumns(Boolean ignoreExtraColumns) {
+ this.ignoreExtraColumns = ignoreExtraColumns;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..cc2d707
--- /dev/null
+++ b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.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.gson.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.gson.GsonDataFormat;
+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(GsonDataFormatConfiguration.class)
+public class GsonDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(GsonDataFormat.class)
+ public GsonDataFormat configureGsonDataFormat(CamelContext camelContext,
+ GsonDataFormatConfiguration configuration) throws Exception {
+ GsonDataFormat dataformat = new GsonDataFormat();
+ 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-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
new file mode 100644
index 0000000..51dca10
--- /dev/null
+++ b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
@@ -0,0 +1,244 @@
+/**
+ * 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.gson.springboot;
+
+import org.apache.camel.model.dataformat.JsonLibrary;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Gson support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.json")
+public class GsonDataFormatConfiguration {
+
+ /**
+ * Lookup and use the existing ObjectMapper with the given id when using
+ * Jackson.
+ */
+ private String objectMapper;
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Which json library to use such. Is by default xstream
+ */
+ private JsonLibrary library;
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * When marshalling a POJO to JSON you might want to exclude certain fields
+ * from the JSON output. With Jackson you can use JSON views to accomplish
+ * this. This option is to refer to the class which has JsonView annotations
+ */
+ private Class jsonView;
+ /**
+ * If you want to marshal a pojo to JSON and the pojo has some fields with
+ * null values. And you want to skip these null values you can set this
+ * option to NOT_NULL
+ */
+ private String include;
+ /**
+ * Used for JMS users to allow the JMSType header from the JMS spec to
+ * specify a FQN classname to use to unmarshal to.
+ */
+ private Boolean allowJmsType;
+ /**
+ * Refers to a custom collection type to lookup in the registry to use. This
+ * option should rarely be used but allows to use different collection types
+ * than java.util.Collection based as default.
+ */
+ private String collectionTypeName;
+ /**
+ * To unarmshal to a List of Map or a List of Pojo.
+ */
+ private Boolean useList;
+ /**
+ * Whether to enable the JAXB annotations module when using jackson. When
+ * enabled then JAXB annotations can be used by Jackson.
+ */
+ private Boolean enableJaxbAnnotationModule;
+ /**
+ * To use custom Jackson modules com.fasterxml.jackson.databind.Module
+ * specified as a String with FQN class names. Multiple classes can be
+ * separated by comma.
+ */
+ private String moduleClassNames;
+ /**
+ * To use custom Jackson modules referred from the Camel registry. Multiple
+ * modules can be separated by comma.
+ */
+ private String moduleRefs;
+ /**
+ * Set of features to enable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String enableFeatures;
+ /**
+ * Set of features to disable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String disableFeatures;
+ /**
+ * Adds permissions that controls which Java packages and classes XStream is
+ * allowed to use during unmarshal from xml/json to Java beans. A permission
+ * must be configured either here or globally using a JVM system property.
+ * The permission can be specified in a syntax where a plus sign is allow
+ * and minus sign is deny. Wildcards is supported by using . as prefix. For
+ * example to allow com.foo and all subpackages then specfy com.foo..
+ * Multiple permissions can be configured separated by comma such as
+ * com.foo.-com.foo.bar.MySecretBean. The following default permission is
+ * always included: -java.lang.java.util. unless its overridden by
+ * specifying a JVM system property with they key
+ * org.apache.camel.xstream.permissions.
+ */
+ private String permissions;
+
+ public String getObjectMapper() {
+ return objectMapper;
+ }
+
+ public void setObjectMapper(String objectMapper) {
+ this.objectMapper = objectMapper;
+ }
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public JsonLibrary getLibrary() {
+ return library;
+ }
+
+ public void setLibrary(JsonLibrary library) {
+ this.library = library;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Class getJsonView() {
+ return jsonView;
+ }
+
+ public void setJsonView(Class jsonView) {
+ this.jsonView = jsonView;
+ }
+
+ public String getInclude() {
+ return include;
+ }
+
+ public void setInclude(String include) {
+ this.include = include;
+ }
+
+ public Boolean getAllowJmsType() {
+ return allowJmsType;
+ }
+
+ public void setAllowJmsType(Boolean allowJmsType) {
+ this.allowJmsType = allowJmsType;
+ }
+
+ public String getCollectionTypeName() {
+ return collectionTypeName;
+ }
+
+ public void setCollectionTypeName(String collectionTypeName) {
+ this.collectionTypeName = collectionTypeName;
+ }
+
+ public Boolean getUseList() {
+ return useList;
+ }
+
+ public void setUseList(Boolean useList) {
+ this.useList = useList;
+ }
+
+ public Boolean getEnableJaxbAnnotationModule() {
+ return enableJaxbAnnotationModule;
+ }
+
+ public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
+ this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
+ }
+
+ public String getModuleClassNames() {
+ return moduleClassNames;
+ }
+
+ public void setModuleClassNames(String moduleClassNames) {
+ this.moduleClassNames = moduleClassNames;
+ }
+
+ public String getModuleRefs() {
+ return moduleRefs;
+ }
+
+ public void setModuleRefs(String moduleRefs) {
+ this.moduleRefs = moduleRefs;
+ }
+
+ public String getEnableFeatures() {
+ return enableFeatures;
+ }
+
+ public void setEnableFeatures(String enableFeatures) {
+ this.enableFeatures = enableFeatures;
+ }
+
+ public String getDisableFeatures() {
+ return disableFeatures;
+ }
+
+ public void setDisableFeatures(String disableFeatures) {
+ this.disableFeatures = disableFeatures;
+ }
+
+ public String getPermissions() {
+ return permissions;
+ }
+
+ public void setPermissions(String permissions) {
+ this.permissions = permissions;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..cd6e2e6
--- /dev/null
+++ b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.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.hessian.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.dataformat.hessian.HessianDataFormat;
+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(HessianDataFormatConfiguration.class)
+public class HessianDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HessianDataFormat.class)
+ public HessianDataFormat configureHessianDataFormat(
+ CamelContext camelContext,
+ HessianDataFormatConfiguration configuration) throws Exception {
+ HessianDataFormat dataformat = new HessianDataFormat();
+ 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-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
new file mode 100644
index 0000000..4a24215
--- /dev/null
+++ b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.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.dataformat.hessian.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Hessian serialization support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.hessian")
+public class HessianDataFormatConfiguration {
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.java
new file mode 100644
index 0000000..5da004e
--- /dev/null
+++ b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatAutoConfiguration.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.hl7.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.hl7.HL7DataFormat;
+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(HL7DataFormatConfiguration.class)
+public class HL7DataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HL7DataFormat.class)
+ public HL7DataFormat configureHL7DataFormat(CamelContext camelContext,
+ HL7DataFormatConfiguration configuration) throws Exception {
+ HL7DataFormat dataformat = new HL7DataFormat();
+ 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-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java
new file mode 100644
index 0000000..0982908
--- /dev/null
+++ b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.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.hl7.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel HL7 support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.hl7")
+public class HL7DataFormatConfiguration {
+
+ /**
+ * Whether to validate the HL7 message Is by default true.
+ */
+ private Boolean validate;
+
+ public Boolean getValidate() {
+ return validate;
+ }
+
+ public void setValidate(Boolean validate) {
+ this.validate = validate;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..c1fd37e
--- /dev/null
+++ b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatAutoConfiguration.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.ical.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.ical.ICalDataFormat;
+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(ICalDataFormatConfiguration.class)
+public class ICalDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(ICalDataFormat.class)
+ public ICalDataFormat configureICalDataFormat(CamelContext camelContext,
+ ICalDataFormatConfiguration configuration) throws Exception {
+ ICalDataFormat dataformat = new ICalDataFormat();
+ 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-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java
new file mode 100644
index 0000000..f743da2
--- /dev/null
+++ b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.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.ical.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel iCal component
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.ical")
+public class ICalDataFormatConfiguration {
+
+ /**
+ * Whether to validate.
+ */
+ private Boolean validating;
+
+ public Boolean getValidating() {
+ return validating;
+ }
+
+ public void setValidating(Boolean validating) {
+ this.validating = validating;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..8fb7c4c
--- /dev/null
+++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatAutoConfiguration.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.component.jackson.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.jackson.JacksonDataFormat;
+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(JacksonDataFormatConfiguration.class)
+public class JacksonDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(JacksonDataFormat.class)
+ public JacksonDataFormat configureJacksonDataFormat(
+ CamelContext camelContext,
+ JacksonDataFormatConfiguration configuration) throws Exception {
+ JacksonDataFormat dataformat = new JacksonDataFormat();
+ 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-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
new file mode 100644
index 0000000..ea0e61b
--- /dev/null
+++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
@@ -0,0 +1,244 @@
+/**
+ * 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.jackson.springboot;
+
+import org.apache.camel.model.dataformat.JsonLibrary;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Jackson support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.json")
+public class JacksonDataFormatConfiguration {
+
+ /**
+ * Lookup and use the existing ObjectMapper with the given id when using
+ * Jackson.
+ */
+ private String objectMapper;
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Which json library to use such. Is by default xstream
+ */
+ private JsonLibrary library;
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * When marshalling a POJO to JSON you might want to exclude certain fields
+ * from the JSON output. With Jackson you can use JSON views to accomplish
+ * this. This option is to refer to the class which has JsonView annotations
+ */
+ private Class jsonView;
+ /**
+ * If you want to marshal a pojo to JSON and the pojo has some fields with
+ * null values. And you want to skip these null values you can set this
+ * option to NOT_NULL
+ */
+ private String include;
+ /**
+ * Used for JMS users to allow the JMSType header from the JMS spec to
+ * specify a FQN classname to use to unmarshal to.
+ */
+ private Boolean allowJmsType;
+ /**
+ * Refers to a custom collection type to lookup in the registry to use. This
+ * option should rarely be used but allows to use different collection types
+ * than java.util.Collection based as default.
+ */
+ private String collectionTypeName;
+ /**
+ * To unarmshal to a List of Map or a List of Pojo.
+ */
+ private Boolean useList;
+ /**
+ * Whether to enable the JAXB annotations module when using jackson. When
+ * enabled then JAXB annotations can be used by Jackson.
+ */
+ private Boolean enableJaxbAnnotationModule;
+ /**
+ * To use custom Jackson modules com.fasterxml.jackson.databind.Module
+ * specified as a String with FQN class names. Multiple classes can be
+ * separated by comma.
+ */
+ private String moduleClassNames;
+ /**
+ * To use custom Jackson modules referred from the Camel registry. Multiple
+ * modules can be separated by comma.
+ */
+ private String moduleRefs;
+ /**
+ * Set of features to enable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String enableFeatures;
+ /**
+ * Set of features to disable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String disableFeatures;
+ /**
+ * Adds permissions that controls which Java packages and classes XStream is
+ * allowed to use during unmarshal from xml/json to Java beans. A permission
+ * must be configured either here or globally using a JVM system property.
+ * The permission can be specified in a syntax where a plus sign is allow
+ * and minus sign is deny. Wildcards is supported by using . as prefix. For
+ * example to allow com.foo and all subpackages then specfy com.foo..
+ * Multiple permissions can be configured separated by comma such as
+ * com.foo.-com.foo.bar.MySecretBean. The following default permission is
+ * always included: -java.lang.java.util. unless its overridden by
+ * specifying a JVM system property with they key
+ * org.apache.camel.xstream.permissions.
+ */
+ private String permissions;
+
+ public String getObjectMapper() {
+ return objectMapper;
+ }
+
+ public void setObjectMapper(String objectMapper) {
+ this.objectMapper = objectMapper;
+ }
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public JsonLibrary getLibrary() {
+ return library;
+ }
+
+ public void setLibrary(JsonLibrary library) {
+ this.library = library;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Class getJsonView() {
+ return jsonView;
+ }
+
+ public void setJsonView(Class jsonView) {
+ this.jsonView = jsonView;
+ }
+
+ public String getInclude() {
+ return include;
+ }
+
+ public void setInclude(String include) {
+ this.include = include;
+ }
+
+ public Boolean getAllowJmsType() {
+ return allowJmsType;
+ }
+
+ public void setAllowJmsType(Boolean allowJmsType) {
+ this.allowJmsType = allowJmsType;
+ }
+
+ public String getCollectionTypeName() {
+ return collectionTypeName;
+ }
+
+ public void setCollectionTypeName(String collectionTypeName) {
+ this.collectionTypeName = collectionTypeName;
+ }
+
+ public Boolean getUseList() {
+ return useList;
+ }
+
+ public void setUseList(Boolean useList) {
+ this.useList = useList;
+ }
+
+ public Boolean getEnableJaxbAnnotationModule() {
+ return enableJaxbAnnotationModule;
+ }
+
+ public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
+ this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
+ }
+
+ public String getModuleClassNames() {
+ return moduleClassNames;
+ }
+
+ public void setModuleClassNames(String moduleClassNames) {
+ this.moduleClassNames = moduleClassNames;
+ }
+
+ public String getModuleRefs() {
+ return moduleRefs;
+ }
+
+ public void setModuleRefs(String moduleRefs) {
+ this.moduleRefs = moduleRefs;
+ }
+
+ public String getEnableFeatures() {
+ return enableFeatures;
+ }
+
+ public void setEnableFeatures(String enableFeatures) {
+ this.enableFeatures = enableFeatures;
+ }
+
+ public String getDisableFeatures() {
+ return disableFeatures;
+ }
+
+ public void setDisableFeatures(String disableFeatures) {
+ this.disableFeatures = disableFeatures;
+ }
+
+ public String getPermissions() {
+ return permissions;
+ }
+
+ public void setPermissions(String permissions) {
+ this.permissions = permissions;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/d76f047d/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.java
new file mode 100644
index 0000000..9ac370f
--- /dev/null
+++ b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatAutoConfiguration.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.component.jacksonxml.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.component.jacksonxml.JacksonXMLDataFormat;
+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(JacksonXMLDataFormatConfiguration.class)
+public class JacksonXMLDataFormatAutoConfiguration {
+
+ @Bean
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(JacksonXMLDataFormat.class)
+ public JacksonXMLDataFormat configureJacksonXMLDataFormat(
+ CamelContext camelContext,
+ JacksonXMLDataFormatConfiguration configuration) throws Exception {
+ JacksonXMLDataFormat dataformat = new JacksonXMLDataFormat();
+ 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-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
new file mode 100644
index 0000000..6909cb1
--- /dev/null
+++ b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java
@@ -0,0 +1,208 @@
+/**
+ * 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.jacksonxml.springboot;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * Camel Jackson XML support
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@ConfigurationProperties(prefix = "camel.dataformat.jacksonxml")
+public class JacksonXMLDataFormatConfiguration {
+
+ /**
+ * Lookup and use the existing XmlMapper with the given id.
+ */
+ private String xmlMapper;
+ /**
+ * To enable pretty printing output nicely formatted. Is by default false.
+ */
+ private Boolean prettyPrint;
+ /**
+ * Class name of the java type to use when unarmshalling
+ */
+ private String unmarshalTypeName;
+ /**
+ * When marshalling a POJO to JSON you might want to exclude certain fields
+ * from the JSON output. With Jackson you can use JSON views to accomplish
+ * this. This option is to refer to the class which has JsonView annotations
+ */
+ private Class jsonView;
+ /**
+ * If you want to marshal a pojo to JSON and the pojo has some fields with
+ * null values. And you want to skip these null values you can set this
+ * option to NOT_NULL
+ */
+ private String include;
+ /**
+ * Used for JMS users to allow the JMSType header from the JMS spec to
+ * specify a FQN classname to use to unmarshal to.
+ */
+ private Boolean allowJmsType;
+ /**
+ * Refers to a custom collection type to lookup in the registry to use. This
+ * option should rarely be used but allows to use different collection types
+ * than java.util.Collection based as default.
+ */
+ private String collectionTypeName;
+ /**
+ * To unarmshal to a List of Map or a List of Pojo.
+ */
+ private Boolean useList;
+ /**
+ * Whether to enable the JAXB annotations module when using jackson. When
+ * enabled then JAXB annotations can be used by Jackson.
+ */
+ private Boolean enableJaxbAnnotationModule;
+ /**
+ * To use custom Jackson modules com.fasterxml.jackson.databind.Module
+ * specified as a String with FQN class names. Multiple classes can be
+ * separated by comma.
+ */
+ private String moduleClassNames;
+ /**
+ * To use custom Jackson modules referred from the Camel registry. Multiple
+ * modules can be separated by comma.
+ */
+ private String moduleRefs;
+ /**
+ * Set of features to enable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String enableFeatures;
+ /**
+ * Set of features to disable on the Jackson
+ * com.fasterxml.jackson.databind.ObjectMapper. The features should be a
+ * name that matches a enum from
+ * com.fasterxml.jackson.databind.SerializationFeature
+ * com.fasterxml.jackson.databind.DeserializationFeature or
+ * com.fasterxml.jackson.databind.MapperFeature Multiple features can be
+ * separated by comma
+ */
+ private String disableFeatures;
+
+ public String getXmlMapper() {
+ return xmlMapper;
+ }
+
+ public void setXmlMapper(String xmlMapper) {
+ this.xmlMapper = xmlMapper;
+ }
+
+ public Boolean getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public void setPrettyPrint(Boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Class getJsonView() {
+ return jsonView;
+ }
+
+ public void setJsonView(Class jsonView) {
+ this.jsonView = jsonView;
+ }
+
+ public String getInclude() {
+ return include;
+ }
+
+ public void setInclude(String include) {
+ this.include = include;
+ }
+
+ public Boolean getAllowJmsType() {
+ return allowJmsType;
+ }
+
+ public void setAllowJmsType(Boolean allowJmsType) {
+ this.allowJmsType = allowJmsType;
+ }
+
+ public String getCollectionTypeName() {
+ return collectionTypeName;
+ }
+
+ public void setCollectionTypeName(String collectionTypeName) {
+ this.collectionTypeName = collectionTypeName;
+ }
+
+ public Boolean getUseList() {
+ return useList;
+ }
+
+ public void setUseList(Boolean useList) {
+ this.useList = useList;
+ }
+
+ public Boolean getEnableJaxbAnnotationModule() {
+ return enableJaxbAnnotationModule;
+ }
+
+ public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) {
+ this.enableJaxbAnnotationModule = enableJaxbAnnotationModule;
+ }
+
+ public String getModuleClassNames() {
+ return moduleClassNames;
+ }
+
+ public void setModuleClassNames(String moduleClassNames) {
+ this.moduleClassNames = moduleClassNames;
+ }
+
+ public String getModuleRefs() {
+ return moduleRefs;
+ }
+
+ public void setModuleRefs(String moduleRefs) {
+ this.moduleRefs = moduleRefs;
+ }
+
+ public String getEnableFeatures() {
+ return enableFeatures;
+ }
+
+ public void setEnableFeatures(String enableFeatures) {
+ this.enableFeatures = enableFeatures;
+ }
+
+ public String getDisableFeatures() {
+ return disableFeatures;
+ }
+
+ public void setDisableFeatures(String disableFeatures) {
+ this.disableFeatures = disableFeatures;
+ }
+}
\ No newline at end of file