http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/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 14ac124..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 = false; - /** - * Whether or not the record ends on new line. The default value is false - */ - private Boolean recordEndsOnNewline = false; - /** - * 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 = true; - /** - * Whether or not the trailing white spaces must ignored. The default value - * is true - */ - private Boolean ignoreTrailingWhitespaces = true; - /** - * Whether or not the leading white spaces must be ignored. The default - * value is true - */ - private Boolean ignoreLeadingWhitespaces = true; - /** - * 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 = false; - /** - * Whether or not the header must be read in the first line of the test - * document The default value is false - */ - private Boolean headerExtractionEnabled = false; - /** - * 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 = false; - /** - * 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 = false; - - 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/67633827/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 051aa69..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(name = "univocity-tsv-dataformat") - @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/67633827/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 7c9a66b..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 = true; - /** - * Whether or not the trailing white spaces must ignored. The default value - * is true - */ - private Boolean ignoreTrailingWhitespaces = true; - /** - * Whether or not the leading white spaces must be ignored. The default - * value is true - */ - private Boolean ignoreLeadingWhitespaces = true; - /** - * 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 = false; - /** - * Whether or not the header must be read in the first line of the test - * document The default value is false - */ - private Boolean headerExtractionEnabled = false; - /** - * 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 = false; - /** - * 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 = false; - - 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/67633827/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories b/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 6affb9f..0000000 --- a/components/camel-univocity-parsers/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,23 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.univocity.springboot.UniVocityCsvDataFormatAutoConfiguration,\ -org.apache.camel.dataformat.univocity.springboot.UniVocityFixedWidthDataFormatAutoConfiguration,\ -org.apache.camel.dataformat.univocity.springboot.UniVocityTsvDataFormatAutoConfiguration - - http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentAutoConfiguration.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentAutoConfiguration.java deleted file mode 100644 index be0b585..0000000 --- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +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.velocity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.velocity.VelocityComponent; -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(VelocityComponentConfiguration.class) -public class VelocityComponentAutoConfiguration { - - @Bean(name = "velocity-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(VelocityComponent.class) - public VelocityComponent configureVelocityComponent( - CamelContext camelContext, - VelocityComponentConfiguration configuration) throws Exception { - VelocityComponent component = new VelocityComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentConfiguration.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentConfiguration.java deleted file mode 100644 index 70776ac..0000000 --- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/springboot/VelocityComponentConfiguration.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.component.velocity.springboot; - -import org.apache.velocity.app.VelocityEngine; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Transforms the message using a Velocity template. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.velocity") -public class VelocityComponentConfiguration { - - /** - * To use the VelocityEngine otherwise a new engine is created - */ - private VelocityEngine velocityEngine; - - public VelocityEngine getVelocityEngine() { - return velocityEngine; - } - - public void setVelocityEngine(VelocityEngine velocityEngine) { - this.velocityEngine = velocityEngine; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-velocity/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-velocity/src/main/resources/META-INF/spring.factories b/components/camel-velocity/src/main/resources/META-INF/spring.factories deleted file mode 100644 index aca4338..0000000 --- a/components/camel-velocity/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.velocity.springboot.VelocityComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentAutoConfiguration.java b/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentAutoConfiguration.java deleted file mode 100644 index 57f3d1b..0000000 --- a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentAutoConfiguration.java +++ /dev/null @@ -1,51 +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.vertx.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.vertx.VertxComponent; -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(VertxComponentConfiguration.class) -public class VertxComponentAutoConfiguration { - - @Bean(name = "vertx-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(VertxComponent.class) - public VertxComponent configureVertxComponent(CamelContext camelContext, - VertxComponentConfiguration configuration) throws Exception { - VertxComponent component = new VertxComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentConfiguration.java b/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentConfiguration.java deleted file mode 100644 index 74d8d91..0000000 --- a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/springboot/VertxComponentConfiguration.java +++ /dev/null @@ -1,107 +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.vertx.springboot; - -import io.vertx.core.Vertx; -import io.vertx.core.VertxOptions; -import io.vertx.core.spi.VertxFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The vertx component is used for sending and receive messages from a vertx - * event bus. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.vertx") -public class VertxComponentConfiguration { - - /** - * To use a custom VertxFactory implementation - */ - private VertxFactory vertxFactory; - /** - * Hostname for creating an embedded clustered EventBus - */ - private String host; - /** - * Port for creating an embedded clustered EventBus - */ - private Integer port; - /** - * Options to use for creating vertx - */ - private VertxOptions vertxOptions; - /** - * To use the given vertx EventBus instead of creating a new embedded - * EventBus - */ - private Vertx vertx; - /** - * Timeout in seconds to wait for clustered Vertx EventBus to be ready. The - * default value is 60. - */ - private Integer timeout; - - public VertxFactory getVertxFactory() { - return vertxFactory; - } - - public void setVertxFactory(VertxFactory vertxFactory) { - this.vertxFactory = vertxFactory; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public VertxOptions getVertxOptions() { - return vertxOptions; - } - - public void setVertxOptions(VertxOptions vertxOptions) { - this.vertxOptions = vertxOptions; - } - - public Vertx getVertx() { - return vertx; - } - - public void setVertx(Vertx vertx) { - this.vertx = vertx; - } - - public Integer getTimeout() { - return timeout; - } - - public void setTimeout(Integer timeout) { - this.timeout = timeout; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-vertx/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-vertx/src/main/resources/META-INF/spring.factories b/components/camel-vertx/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 2b84e83..0000000 --- a/components/camel-vertx/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.vertx.springboot.VertxComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentAutoConfiguration.java b/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentAutoConfiguration.java deleted file mode 100644 index afa2ea6..0000000 --- a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +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.websocket.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.websocket.WebsocketComponent; -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(WebsocketComponentConfiguration.class) -public class WebsocketComponentAutoConfiguration { - - @Bean(name = "websocket-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(WebsocketComponent.class) - public WebsocketComponent configureWebsocketComponent( - CamelContext camelContext, - WebsocketComponentConfiguration configuration) throws Exception { - WebsocketComponent component = new WebsocketComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java b/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java deleted file mode 100644 index 4797773..0000000 --- a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java +++ /dev/null @@ -1,192 +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.websocket.springboot; - -import java.util.Map; -import org.apache.camel.component.websocket.WebSocketFactory; -import org.apache.camel.util.jsse.SSLContextParameters; -import org.eclipse.jetty.util.thread.ThreadPool; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The websocket component provides websocket endpoints for communicating with - * clients using websocket. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.websocket") -public class WebsocketComponentConfiguration { - - /** - * Set a resource path for static resources (such as .html files etc). The - * resources can be loaded from classpath if you prefix with classpath: - * otherwise the resources is loaded from file system or from JAR files. For - * example to load from root classpath use classpath:. or - * classpath:WEB-INF/static If not configured (eg null) then no static - * resource is in use. - */ - private String staticResources; - /** - * The hostname. The default value is 0.0.0.0 - */ - private String host; - /** - * The port number. The default value is 9292 - */ - private Integer port; - /** - * The password for the keystore when using SSL. - */ - private String sslKeyPassword; - /** - * The password when using SSL. - */ - private String sslPassword; - /** - * The path to the keystore. - */ - private String sslKeystore; - /** - * If this option is true Jetty JMX support will be enabled for this - * endpoint. See Jetty JMX support for more details. - */ - private Boolean enableJmx; - /** - * To set a value for minimum number of threads in server thread pool. - * MaxThreads/minThreads or threadPool fields are required due to switch to - * Jetty9. The default values for minThreads is 1. - */ - private Integer minThreads; - /** - * To set a value for maximum number of threads in server thread pool. - * MaxThreads/minThreads or threadPool fields are required due to switch to - * Jetty9. The default values for maxThreads is 1 2 noCores. - */ - private Integer maxThreads; - /** - * To use a custom thread pool for the server. MaxThreads/minThreads or - * threadPool fields are required due to switch to Jetty9. - */ - private ThreadPool threadPool; - /** - * To configure security using SSLContextParameters - */ - private SSLContextParameters sslContextParameters; - /** - * To configure a map which contains custom WebSocketFactory for sub - * protocols. The key in the map is the sub protocol. The default key is - * reserved for the default implementation. - */ - private Map<String, WebSocketFactory> socketFactory; - - public String getStaticResources() { - return staticResources; - } - - public void setStaticResources(String staticResources) { - this.staticResources = staticResources; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getSslKeyPassword() { - return sslKeyPassword; - } - - public void setSslKeyPassword(String sslKeyPassword) { - this.sslKeyPassword = sslKeyPassword; - } - - public String getSslPassword() { - return sslPassword; - } - - public void setSslPassword(String sslPassword) { - this.sslPassword = sslPassword; - } - - public String getSslKeystore() { - return sslKeystore; - } - - public void setSslKeystore(String sslKeystore) { - this.sslKeystore = sslKeystore; - } - - public Boolean getEnableJmx() { - return enableJmx; - } - - public void setEnableJmx(Boolean enableJmx) { - this.enableJmx = enableJmx; - } - - public Integer getMinThreads() { - return minThreads; - } - - public void setMinThreads(Integer minThreads) { - this.minThreads = minThreads; - } - - public Integer getMaxThreads() { - return maxThreads; - } - - public void setMaxThreads(Integer maxThreads) { - this.maxThreads = maxThreads; - } - - public ThreadPool getThreadPool() { - return threadPool; - } - - public void setThreadPool(ThreadPool threadPool) { - this.threadPool = threadPool; - } - - public SSLContextParameters getSslContextParameters() { - return sslContextParameters; - } - - public void setSslContextParameters( - SSLContextParameters sslContextParameters) { - this.sslContextParameters = sslContextParameters; - } - - public Map<String, WebSocketFactory> getSocketFactory() { - return socketFactory; - } - - public void setSocketFactory(Map<String, WebSocketFactory> socketFactory) { - this.socketFactory = socketFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-websocket/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-websocket/src/main/resources/META-INF/spring.factories b/components/camel-websocket/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f5a3522..0000000 --- a/components/camel-websocket/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.websocket.springboot.WebsocketComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.java deleted file mode 100644 index 968a99c..0000000 --- a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatAutoConfiguration.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.xmlbeans.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.converter.xmlbeans.XmlBeansDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(XmlBeansDataFormatConfiguration.class) -public class XmlBeansDataFormatAutoConfiguration { - - @Bean(name = "xmlBeans-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(XmlBeansDataFormat.class) - public XmlBeansDataFormat configureXmlBeansDataFormat( - CamelContext camelContext, - XmlBeansDataFormatConfiguration configuration) throws Exception { - XmlBeansDataFormat dataformat = new XmlBeansDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - 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/67633827/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java b/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.java deleted file mode 100644 index 5aed017..0000000 --- a/components/camel-xmlbeans/src/main/java/org/apache/camel/converter/xmlbeans/springboot/XmlBeansDataFormatConfiguration.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.converter.xmlbeans.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel XMLBeans support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.xmlbeans") -public class XmlBeansDataFormatConfiguration { - - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint = false; - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories b/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 6154ec6..0000000 --- a/components/camel-xmlbeans/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.converter.xmlbeans.springboot.XmlBeansDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/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 fc1c022..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(name = "xmljson-dataformat") - @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/67633827/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 891e303..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 = false; - /** - * 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 = false; - /** - * 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 = false; - /** - * Determines whether leading and trailing white spaces will be omitted from - * String values. Used for marshalling (XML to JSon conversion). - */ - private Boolean trimSpaces = false; - /** - * 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 = false; - /** - * 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 = false; - /** - * 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<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/67633827/components/camel-xmljson/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-xmljson/src/main/resources/META-INF/spring.factories b/components/camel-xmljson/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d8c7521..0000000 --- a/components/camel-xmljson/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.xmljson.springboot.XmlJsonDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/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 6130329..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(name = "xmlrpc-dataformat") - @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/67633827/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 0311c42..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 marshal/unmarshal request or response Is by default false - */ - private Boolean request = false; - - 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/67633827/components/camel-xmlrpc/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-xmlrpc/src/main/resources/META-INF/spring.factories b/components/camel-xmlrpc/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4628753..0000000 --- a/components/camel-xmlrpc/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.xmlrpc.springboot.XmlRpcDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentAutoConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentAutoConfiguration.java deleted file mode 100644 index 2e3c549..0000000 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +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.xmlsecurity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.xmlsecurity.XmlSignatureComponent; -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(XmlSignatureComponentConfiguration.class) -public class XmlSignatureComponentAutoConfiguration { - - @Bean(name = "xmlsecurity-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(XmlSignatureComponent.class) - public XmlSignatureComponent configureXmlSignatureComponent( - CamelContext camelContext, - XmlSignatureComponentConfiguration configuration) throws Exception { - XmlSignatureComponent component = new XmlSignatureComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file