CAMEL-10222: Created camel-core-starter
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d10555fa Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d10555fa Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d10555fa Branch: refs/heads/master Commit: d10555fac1e1d47db19e69a27e5d4d246676ea1c Parents: 185f848 Author: Nicola Ferraro <ni.ferr...@gmail.com> Authored: Fri Aug 12 09:39:53 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Aug 15 09:27:23 2016 +0200 ---------------------------------------------------------------------- camel-core/pom.xml | 15 +- .../DirectComponentAutoConfiguration.java | 51 ---- .../DirectComponentConfiguration.java | 56 ----- .../DirectVmComponentAutoConfiguration.java | 52 ----- .../DirectVmComponentConfiguration.java | 85 ------- .../LogComponentAutoConfiguration.java | 51 ---- .../springboot/LogComponentConfiguration.java | 44 ---- .../PropertiesComponentAutoConfiguration.java | 52 ----- .../PropertiesComponentConfiguration.java | 230 ------------------- .../SchedulerComponentAutoConfiguration.java | 52 ----- .../SchedulerComponentConfiguration.java | 43 ---- .../SedaComponentAutoConfiguration.java | 51 ---- .../springboot/SedaComponentConfiguration.java | 70 ------ .../StubComponentAutoConfiguration.java | 51 ---- .../springboot/StubComponentConfiguration.java | 70 ------ .../ValidatorComponentAutoConfiguration.java | 52 ----- .../ValidatorComponentConfiguration.java | 44 ---- .../VmComponentAutoConfiguration.java | 51 ---- .../vm/springboot/VmComponentConfiguration.java | 70 ------ .../XsltComponentAutoConfiguration.java | 51 ---- .../springboot/XsltComponentConfiguration.java | 104 --------- .../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 ---- .../BeanLanguageAutoConfiguration.java | 54 ----- .../springboot/BeanLanguageConfiguration.java | 42 ---- .../ConstantLanguageAutoConfiguration.java | 55 ----- .../ConstantLanguageConfiguration.java | 42 ---- .../HeaderLanguageAutoConfiguration.java | 54 ----- .../springboot/HeaderLanguageConfiguration.java | 42 ---- ...changePropertyLanguageAutoConfiguration.java | 56 ----- .../ExchangePropertyLanguageConfiguration.java | 42 ---- .../RefLanguageAutoConfiguration.java | 54 ----- .../springboot/RefLanguageConfiguration.java | 42 ---- .../FileLanguageAutoConfiguration.java | 54 ----- .../springboot/FileLanguageConfiguration.java | 42 ---- .../SimpleLanguageAutoConfiguration.java | 54 ----- .../springboot/SimpleLanguageConfiguration.java | 42 ---- .../TokenizeLanguageAutoConfiguration.java | 55 ----- .../TokenizeLanguageConfiguration.java | 42 ---- .../XMLTokenizeLanguageAutoConfiguration.java | 55 ----- .../XMLTokenizeLanguageConfiguration.java | 58 ----- .../XPathLanguageAutoConfiguration.java | 54 ----- .../springboot/XPathLanguageConfiguration.java | 102 -------- .../main/resources/META-INF/spring.factories | 63 ----- components-starter/camel-core-starter/pom.xml | 50 ++++ .../DirectComponentAutoConfiguration.java | 51 ++++ .../DirectComponentConfiguration.java | 56 +++++ .../DirectVmComponentAutoConfiguration.java | 52 +++++ .../DirectVmComponentConfiguration.java | 85 +++++++ .../LogComponentAutoConfiguration.java | 51 ++++ .../springboot/LogComponentConfiguration.java | 44 ++++ .../PropertiesComponentAutoConfiguration.java | 52 +++++ .../PropertiesComponentConfiguration.java | 230 +++++++++++++++++++ .../SchedulerComponentAutoConfiguration.java | 52 +++++ .../SchedulerComponentConfiguration.java | 43 ++++ .../SedaComponentAutoConfiguration.java | 51 ++++ .../springboot/SedaComponentConfiguration.java | 70 ++++++ .../StubComponentAutoConfiguration.java | 51 ++++ .../springboot/StubComponentConfiguration.java | 70 ++++++ .../ValidatorComponentAutoConfiguration.java | 52 +++++ .../ValidatorComponentConfiguration.java | 44 ++++ .../VmComponentAutoConfiguration.java | 51 ++++ .../vm/springboot/VmComponentConfiguration.java | 70 ++++++ .../XsltComponentAutoConfiguration.java | 51 ++++ .../springboot/XsltComponentConfiguration.java | 104 +++++++++ .../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 ++++ .../BeanLanguageAutoConfiguration.java | 54 +++++ .../springboot/BeanLanguageConfiguration.java | 42 ++++ .../ConstantLanguageAutoConfiguration.java | 55 +++++ .../ConstantLanguageConfiguration.java | 42 ++++ .../HeaderLanguageAutoConfiguration.java | 54 +++++ .../springboot/HeaderLanguageConfiguration.java | 42 ++++ ...changePropertyLanguageAutoConfiguration.java | 56 +++++ .../ExchangePropertyLanguageConfiguration.java | 42 ++++ .../RefLanguageAutoConfiguration.java | 54 +++++ .../springboot/RefLanguageConfiguration.java | 42 ++++ .../FileLanguageAutoConfiguration.java | 54 +++++ .../springboot/FileLanguageConfiguration.java | 42 ++++ .../SimpleLanguageAutoConfiguration.java | 54 +++++ .../springboot/SimpleLanguageConfiguration.java | 42 ++++ .../TokenizeLanguageAutoConfiguration.java | 55 +++++ .../TokenizeLanguageConfiguration.java | 42 ++++ .../XMLTokenizeLanguageAutoConfiguration.java | 55 +++++ .../XMLTokenizeLanguageConfiguration.java | 58 +++++ .../XPathLanguageAutoConfiguration.java | 54 +++++ .../springboot/XPathLanguageConfiguration.java | 102 ++++++++ .../src/main/resources/META-INF/LICENSE.txt | 203 ++++++++++++++++ .../src/main/resources/META-INF/NOTICE.txt | 11 + .../main/resources/META-INF/spring.factories | 65 ++++++ .../src/main/resources/META-INF/spring.provides | 18 ++ components-starter/pom.xml | 1 + components/pom.xml | 16 -- .../maven/packaging/SpringBootStarterMojo.java | 35 ++- 106 files changed, 3103 insertions(+), 2834 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/pom.xml ---------------------------------------------------------------------- diff --git a/camel-core/pom.xml b/camel-core/pom.xml index 8d9a995..bc9594a 100644 --- a/camel-core/pom.xml +++ b/camel-core/pom.xml @@ -376,6 +376,7 @@ <id>validate</id> <goals> <goal>validate-components</goal> + <goal>prepare-spring-boot-starter</goal> <goal>prepare-spring-boot-auto-configuration</goal> </goals> <phase>prepare-package</phase> @@ -557,20 +558,6 @@ <dependencies> - <!-- to support spring-boot auto configuration in the Camel components --> - <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot</artifactId> - <version>${spring-boot-version}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-autoconfigure</artifactId> - <version>${spring-boot-version}</version> - <scope>provided</scope> - </dependency> - <!-- enable the APT processor --> <dependency> <groupId>org.apache.camel</groupId> http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentAutoConfiguration.java deleted file mode 100644 index 2a586d3..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentAutoConfiguration.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.direct.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.direct.DirectComponent; -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(DirectComponentConfiguration.class) -public class DirectComponentAutoConfiguration { - - @Bean(name = "direct-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DirectComponent.class) - public DirectComponent configureDirectComponent(CamelContext camelContext, - DirectComponentConfiguration configuration) throws Exception { - DirectComponent component = new DirectComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java deleted file mode 100644 index 7aff386..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.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.component.direct.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The direct component provides direct synchronous call to another endpoint - * from the same CamelContext. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.direct") -public class DirectComponentConfiguration { - - /** - * If sending a message to a direct endpoint which has no active consumer - * then we can tell the producer to block and wait for the consumer to - * become active. - */ - private Boolean block; - /** - * The timeout value to use if block is enabled. - */ - private long timeout = 30000; - - public Boolean getBlock() { - return block; - } - - public void setBlock(Boolean block) { - this.block = block; - } - - public long getTimeout() { - return timeout; - } - - public void setTimeout(long timeout) { - this.timeout = timeout; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentAutoConfiguration.java deleted file mode 100644 index d3ea29e..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentAutoConfiguration.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.directvm.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.directvm.DirectVmComponent; -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(DirectVmComponentConfiguration.class) -public class DirectVmComponentAutoConfiguration { - - @Bean(name = "direct-vm-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DirectVmComponent.class) - public DirectVmComponent configureDirectVmComponent( - CamelContext camelContext, - DirectVmComponentConfiguration configuration) throws Exception { - DirectVmComponent component = new DirectVmComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java deleted file mode 100644 index de1d07d..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java +++ /dev/null @@ -1,85 +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.directvm.springboot; - -import org.apache.camel.spi.HeaderFilterStrategy; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The direct-vm component provides direct synchronous call to another endpoint - * from any CamelContext in the same JVM. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.direct-vm") -public class DirectVmComponentConfiguration { - - /** - * If sending a message to a direct endpoint which has no active consumer - * then we can tell the producer to block and wait for the consumer to - * become active. - */ - private Boolean block; - /** - * The timeout value to use if block is enabled. - */ - private long timeout = 30000; - /** - * Sets a HeaderFilterStrategy that will only be applied on producer - * endpoints (on both directions: request and response). Default value: - * none. - */ - private HeaderFilterStrategy headerFilterStrategy; - /** - * Whether to propagate or not properties from the producer side to the - * consumer side and viceversa. Default value: true. - */ - private Boolean propagateProperties = true; - - public Boolean getBlock() { - return block; - } - - public void setBlock(Boolean block) { - this.block = block; - } - - public long getTimeout() { - return timeout; - } - - public void setTimeout(long timeout) { - this.timeout = timeout; - } - - public HeaderFilterStrategy getHeaderFilterStrategy() { - return headerFilterStrategy; - } - - public void setHeaderFilterStrategy( - HeaderFilterStrategy headerFilterStrategy) { - this.headerFilterStrategy = headerFilterStrategy; - } - - public Boolean getPropagateProperties() { - return propagateProperties; - } - - public void setPropagateProperties(Boolean propagateProperties) { - this.propagateProperties = propagateProperties; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentAutoConfiguration.java deleted file mode 100644 index dcfaa46..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentAutoConfiguration.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.log.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.log.LogComponent; -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(LogComponentConfiguration.class) -public class LogComponentAutoConfiguration { - - @Bean(name = "log-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LogComponent.class) - public LogComponent configureLogComponent(CamelContext camelContext, - LogComponentConfiguration configuration) throws Exception { - LogComponent component = new LogComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentConfiguration.java deleted file mode 100644 index 8b40ee6..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/log/springboot/LogComponentConfiguration.java +++ /dev/null @@ -1,44 +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.log.springboot; - -import org.apache.camel.spi.ExchangeFormatter; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The log component logs message exchanges to the underlying logging mechanism. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.log") -public class LogComponentConfiguration { - - /** - * Sets a custom ExchangeFormatter to convert the Exchange to a String - * suitable for logging. If not specified we default to - * DefaultExchangeFormatter. - */ - private ExchangeFormatter exchangeFormatter; - - public ExchangeFormatter getExchangeFormatter() { - return exchangeFormatter; - } - - public void setExchangeFormatter(ExchangeFormatter exchangeFormatter) { - this.exchangeFormatter = exchangeFormatter; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentAutoConfiguration.java deleted file mode 100644 index d4f8fb0..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentAutoConfiguration.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.properties.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.properties.PropertiesComponent; -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(PropertiesComponentConfiguration.class) -public class PropertiesComponentAutoConfiguration { - - @Bean(name = "properties-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PropertiesComponent.class) - public PropertiesComponent configurePropertiesComponent( - CamelContext camelContext, - PropertiesComponentConfiguration configuration) throws Exception { - PropertiesComponent component = new PropertiesComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java deleted file mode 100644 index 9bb02df..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java +++ /dev/null @@ -1,230 +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.properties.springboot; - -import java.util.Properties; -import org.apache.camel.component.properties.PropertiesParser; -import org.apache.camel.component.properties.PropertiesResolver; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The properties component is used for using property placeholders in endpoint - * uris. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.properties") -public class PropertiesComponentConfiguration { - - /** - * A list of locations to load properties. You can use comma to separate - * multiple locations. This option will override any default locations and - * only use the locations from this option. - */ - private String[] locations; - /** - * A list of locations to load properties. You can use comma to separate - * multiple locations. This option will override any default locations and - * only use the locations from this option. - */ - private String location; - /** - * Encoding to use when loading properties file from the file system or - * classpath. If no encoding has been set then the properties files is - * loaded using ISO-8859-1 encoding (latin-1) as documented by link - * java.util.Propertiesload(java.io.InputStream) - */ - private String encoding; - /** - * To use a custom PropertiesResolver - */ - private PropertiesResolver propertiesResolver; - /** - * To use a custom PropertiesParser - */ - private PropertiesParser propertiesParser; - /** - * Whether or not to cache loaded properties. The default value is true. - */ - private Boolean cache; - /** - * Optional prefix prepended to property names before resolution. - */ - private String propertyPrefix; - /** - * Optional suffix appended to property names before resolution. - */ - private String propertySuffix; - /** - * If true first attempt resolution of property name augmented with - * propertyPrefix and propertySuffix before falling back the plain property - * name specified. If false only the augmented property name is searched. - */ - private Boolean fallbackToUnaugmentedProperty; - /** - * Whether to silently ignore if a location cannot be located such as a - * properties file not found. - */ - private Boolean ignoreMissingLocation; - /** - * Sets the value of the prefix token used to identify properties to - * replace. Setting a value of null restores the default token (link link - * DEFAULT_PREFIX_TOKEN). - */ - private String prefixToken; - /** - * Sets the value of the suffix token used to identify properties to - * replace. Setting a value of null restores the default token (link link - * DEFAULT_SUFFIX_TOKEN). - */ - private String suffixToken; - /** - * Sets initial properties which will be used before any locations are - * resolved. - */ - private Properties initialProperties; - /** - * Sets a special list of override properties that take precedence and will - * use first if a property exist. - */ - private Properties overrideProperties; - /** - * Sets the system property mode. - */ - private Integer systemPropertiesMode; - - public String[] getLocations() { - return locations; - } - - public void setLocations(String[] locations) { - this.locations = locations; - } - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public PropertiesResolver getPropertiesResolver() { - return propertiesResolver; - } - - public void setPropertiesResolver(PropertiesResolver propertiesResolver) { - this.propertiesResolver = propertiesResolver; - } - - public PropertiesParser getPropertiesParser() { - return propertiesParser; - } - - public void setPropertiesParser(PropertiesParser propertiesParser) { - this.propertiesParser = propertiesParser; - } - - public Boolean getCache() { - return cache; - } - - public void setCache(Boolean cache) { - this.cache = cache; - } - - public String getPropertyPrefix() { - return propertyPrefix; - } - - public void setPropertyPrefix(String propertyPrefix) { - this.propertyPrefix = propertyPrefix; - } - - public String getPropertySuffix() { - return propertySuffix; - } - - public void setPropertySuffix(String propertySuffix) { - this.propertySuffix = propertySuffix; - } - - public Boolean getFallbackToUnaugmentedProperty() { - return fallbackToUnaugmentedProperty; - } - - public void setFallbackToUnaugmentedProperty( - Boolean fallbackToUnaugmentedProperty) { - this.fallbackToUnaugmentedProperty = fallbackToUnaugmentedProperty; - } - - public Boolean getIgnoreMissingLocation() { - return ignoreMissingLocation; - } - - public void setIgnoreMissingLocation(Boolean ignoreMissingLocation) { - this.ignoreMissingLocation = ignoreMissingLocation; - } - - public String getPrefixToken() { - return prefixToken; - } - - public void setPrefixToken(String prefixToken) { - this.prefixToken = prefixToken; - } - - public String getSuffixToken() { - return suffixToken; - } - - public void setSuffixToken(String suffixToken) { - this.suffixToken = suffixToken; - } - - public Properties getInitialProperties() { - return initialProperties; - } - - public void setInitialProperties(Properties initialProperties) { - this.initialProperties = initialProperties; - } - - public Properties getOverrideProperties() { - return overrideProperties; - } - - public void setOverrideProperties(Properties overrideProperties) { - this.overrideProperties = overrideProperties; - } - - public Integer getSystemPropertiesMode() { - return systemPropertiesMode; - } - - public void setSystemPropertiesMode(Integer systemPropertiesMode) { - this.systemPropertiesMode = systemPropertiesMode; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java deleted file mode 100644 index 897a713..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.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.scheduler.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.scheduler.SchedulerComponent; -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(SchedulerComponentConfiguration.class) -public class SchedulerComponentAutoConfiguration { - - @Bean(name = "scheduler-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SchedulerComponent.class) - public SchedulerComponent configureSchedulerComponent( - CamelContext camelContext, - SchedulerComponentConfiguration configuration) throws Exception { - SchedulerComponent component = new SchedulerComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentConfiguration.java deleted file mode 100644 index de7325f..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentConfiguration.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.component.scheduler.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The scheduler component is used for generating message exchanges when a - * scheduler fires. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.scheduler") -public class SchedulerComponentConfiguration { - - /** - * Number of threads used by the scheduling thread pool. Is by default using - * a single thread - */ - private Integer concurrentTasks; - - public Integer getConcurrentTasks() { - return concurrentTasks; - } - - public void setConcurrentTasks(Integer concurrentTasks) { - this.concurrentTasks = concurrentTasks; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentAutoConfiguration.java deleted file mode 100644 index 8278164..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentAutoConfiguration.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.seda.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.seda.SedaComponent; -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(SedaComponentConfiguration.class) -public class SedaComponentAutoConfiguration { - - @Bean(name = "seda-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SedaComponent.class) - public SedaComponent configureSedaComponent(CamelContext camelContext, - SedaComponentConfiguration configuration) throws Exception { - SedaComponent component = new SedaComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentConfiguration.java deleted file mode 100644 index fe2c2c1..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/seda/springboot/SedaComponentConfiguration.java +++ /dev/null @@ -1,70 +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.seda.springboot; - -import org.apache.camel.Exchange; -import org.apache.camel.component.seda.BlockingQueueFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The seda component provides asynchronous call to another endpoint from any - * CamelContext in the same JVM. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.seda") -public class SedaComponentConfiguration { - - /** - * Sets the default maximum capacity of the SEDA queue (i.e. the number of - * messages it can hold). - */ - private Integer queueSize; - /** - * Sets the default number of concurrent threads processing exchanges. - */ - private Integer concurrentConsumers; - /** - * Sets the default queue factory. - */ - private BlockingQueueFactory<Exchange> defaultQueueFactory; - - public Integer getQueueSize() { - return queueSize; - } - - public void setQueueSize(Integer queueSize) { - this.queueSize = queueSize; - } - - public Integer getConcurrentConsumers() { - return concurrentConsumers; - } - - public void setConcurrentConsumers(Integer concurrentConsumers) { - this.concurrentConsumers = concurrentConsumers; - } - - public BlockingQueueFactory<Exchange> getDefaultQueueFactory() { - return defaultQueueFactory; - } - - public void setDefaultQueueFactory( - BlockingQueueFactory<Exchange> defaultQueueFactory) { - this.defaultQueueFactory = defaultQueueFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentAutoConfiguration.java deleted file mode 100644 index 451c9b9..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentAutoConfiguration.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.stub.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.stub.StubComponent; -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(StubComponentConfiguration.class) -public class StubComponentAutoConfiguration { - - @Bean(name = "stub-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(StubComponent.class) - public StubComponent configureStubComponent(CamelContext camelContext, - StubComponentConfiguration configuration) throws Exception { - StubComponent component = new StubComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java deleted file mode 100644 index d2db266..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/stub/springboot/StubComponentConfiguration.java +++ /dev/null @@ -1,70 +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.stub.springboot; - -import org.apache.camel.Exchange; -import org.apache.camel.component.seda.BlockingQueueFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The stub component provides a simple way to stub out any physical endpoints - * while in development or testing. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.stub") -public class StubComponentConfiguration { - - /** - * Sets the default maximum capacity of the SEDA queue (i.e. the number of - * messages it can hold). - */ - private Integer queueSize; - /** - * Sets the default number of concurrent threads processing exchanges. - */ - private Integer concurrentConsumers; - /** - * Sets the default queue factory. - */ - private BlockingQueueFactory<Exchange> defaultQueueFactory; - - public Integer getQueueSize() { - return queueSize; - } - - public void setQueueSize(Integer queueSize) { - this.queueSize = queueSize; - } - - public Integer getConcurrentConsumers() { - return concurrentConsumers; - } - - public void setConcurrentConsumers(Integer concurrentConsumers) { - this.concurrentConsumers = concurrentConsumers; - } - - public BlockingQueueFactory<Exchange> getDefaultQueueFactory() { - return defaultQueueFactory; - } - - public void setDefaultQueueFactory( - BlockingQueueFactory<Exchange> defaultQueueFactory) { - this.defaultQueueFactory = defaultQueueFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentAutoConfiguration.java deleted file mode 100644 index 1510856..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentAutoConfiguration.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.validator.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.validator.ValidatorComponent; -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(ValidatorComponentConfiguration.class) -public class ValidatorComponentAutoConfiguration { - - @Bean(name = "validator-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ValidatorComponent.class) - public ValidatorComponent configureValidatorComponent( - CamelContext camelContext, - ValidatorComponentConfiguration configuration) throws Exception { - ValidatorComponent component = new ValidatorComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentConfiguration.java deleted file mode 100644 index 40e5a2d..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/validator/springboot/ValidatorComponentConfiguration.java +++ /dev/null @@ -1,44 +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.validator.springboot; - -import org.apache.camel.component.validator.ValidatorResourceResolverFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Validates the payload of a message using XML Schema and JAXP Validation. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.validator") -public class ValidatorComponentConfiguration { - - /** - * To use a custom LSResourceResolver which depends on a dynamic endpoint - * resource URI - */ - private ValidatorResourceResolverFactory resourceResolverFactory; - - public ValidatorResourceResolverFactory getResourceResolverFactory() { - return resourceResolverFactory; - } - - public void setResourceResolverFactory( - ValidatorResourceResolverFactory resourceResolverFactory) { - this.resourceResolverFactory = resourceResolverFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentAutoConfiguration.java deleted file mode 100644 index 8fb3b6a..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentAutoConfiguration.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.vm.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.vm.VmComponent; -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(VmComponentConfiguration.class) -public class VmComponentAutoConfiguration { - - @Bean(name = "vm-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(VmComponent.class) - public VmComponent configureVmComponent(CamelContext camelContext, - VmComponentConfiguration configuration) throws Exception { - VmComponent component = new VmComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentConfiguration.java deleted file mode 100644 index bf6ffee..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/vm/springboot/VmComponentConfiguration.java +++ /dev/null @@ -1,70 +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.vm.springboot; - -import org.apache.camel.Exchange; -import org.apache.camel.component.seda.BlockingQueueFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The vm component provides asynchronous call to another endpoint from the same - * CamelContext. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.vm") -public class VmComponentConfiguration { - - /** - * Sets the default maximum capacity of the SEDA queue (i.e. the number of - * messages it can hold). - */ - private Integer queueSize; - /** - * Sets the default number of concurrent threads processing exchanges. - */ - private Integer concurrentConsumers; - /** - * Sets the default queue factory. - */ - private BlockingQueueFactory<Exchange> defaultQueueFactory; - - public Integer getQueueSize() { - return queueSize; - } - - public void setQueueSize(Integer queueSize) { - this.queueSize = queueSize; - } - - public Integer getConcurrentConsumers() { - return concurrentConsumers; - } - - public void setConcurrentConsumers(Integer concurrentConsumers) { - this.concurrentConsumers = concurrentConsumers; - } - - public BlockingQueueFactory<Exchange> getDefaultQueueFactory() { - return defaultQueueFactory; - } - - public void setDefaultQueueFactory( - BlockingQueueFactory<Exchange> defaultQueueFactory) { - this.defaultQueueFactory = defaultQueueFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentAutoConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentAutoConfiguration.java deleted file mode 100644 index 8b927e5..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentAutoConfiguration.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.xslt.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.xslt.XsltComponent; -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(XsltComponentConfiguration.class) -public class XsltComponentAutoConfiguration { - - @Bean(name = "xslt-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(XsltComponent.class) - public XsltComponent configureXsltComponent(CamelContext camelContext, - XsltComponentConfiguration configuration) throws Exception { - XsltComponent component = new XsltComponent(); - 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/d10555fa/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java deleted file mode 100644 index 202f644..0000000 --- a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java +++ /dev/null @@ -1,104 +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.xslt.springboot; - -import javax.xml.transform.URIResolver; -import org.apache.camel.component.xslt.XsltUriResolverFactory; -import org.apache.camel.converter.jaxp.XmlConverter; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Transforms the message using a XSLT template. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.xslt") -public class XsltComponentConfiguration { - - /** - * To use a custom implementation of - * org.apache.camel.converter.jaxp.XmlConverter - */ - private XmlConverter xmlConverter; - /** - * To use a custom javax.xml.transform.URIResolver which depends on a - * dynamic endpoint resource URI or which is a subclass of XsltUriResolver. - * Do not use in combination with uriResolver. See also link - * setUriResolver(URIResolver). - */ - private XsltUriResolverFactory uriResolverFactory; - /** - * To use a custom javax.xml.transform.URIResolver. Do not use in - * combination with uriResolverFactory. See also link - * setUriResolverFactory(XsltUriResolverFactory). - */ - private URIResolver uriResolver; - /** - * Cache for the resource content (the stylesheet file) when it is loaded. - * If set to false Camel will reload the stylesheet file on each message - * processing. This is good for development. A cached stylesheet can be - * forced to reload at runtime via JMX using the clearCachedStylesheet - * operation. - */ - private Boolean contentCache = true; - /** - * Whether to use Saxon as the transformerFactoryClass. If enabled then the - * class net.sf.saxon.TransformerFactoryImpl. You would need to add Saxon to - * the classpath. - */ - private Boolean saxon; - - public XmlConverter getXmlConverter() { - return xmlConverter; - } - - public void setXmlConverter(XmlConverter xmlConverter) { - this.xmlConverter = xmlConverter; - } - - public XsltUriResolverFactory getUriResolverFactory() { - return uriResolverFactory; - } - - public void setUriResolverFactory(XsltUriResolverFactory uriResolverFactory) { - this.uriResolverFactory = uriResolverFactory; - } - - public URIResolver getUriResolver() { - return uriResolver; - } - - public void setUriResolver(URIResolver uriResolver) { - this.uriResolver = uriResolver; - } - - public Boolean getContentCache() { - return contentCache; - } - - public void setContentCache(Boolean contentCache) { - this.contentCache = contentCache; - } - - public Boolean getSaxon() { - return saxon; - } - - public void setSaxon(Boolean saxon) { - this.saxon = saxon; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/d10555fa/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 aaff31d..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(name = "gzip-dataformat") - @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/d10555fa/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/d10555fa/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 fbcc1a7..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(name = "serialization-dataformat") - @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/d10555fa/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/d10555fa/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 35daf7b..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(name = "string-dataformat") - @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/d10555fa/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