camel git commit: CAMEL-10712: Camel-SFTP endpoints will silently not delete file on disconnect
Repository: camel Updated Branches: refs/heads/master 33d885925 -> dff9f28cd CAMEL-10712: Camel-SFTP endpoints will silently not delete file on disconnect Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dff9f28c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dff9f28c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dff9f28c Branch: refs/heads/master Commit: dff9f28cd23773d68843354e9bdd0a63d373f8fd Parents: 33d8859 Author: Stephan SianoAuthored: Tue Jan 17 08:27:59 2017 +0100 Committer: Stephan Siano Committed: Tue Jan 17 08:58:11 2017 +0100 -- .../component/file/remote/SftpOperations.java | 10 ++ .../remote/sftp/SftpConsumerDisconnectTest.java | 141 +++ .../file/remote/sftp/SftpServerTestSupport.java | 11 ++ 3 files changed, 162 insertions(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/dff9f28c/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java -- diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java index c502f5b..bb0ffba 100644 --- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java +++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java @@ -419,12 +419,20 @@ public class SftpOperations implements RemoteFileOperations } } +private void reconnectIfNecessary() { +if (!isConnected()) { +connect((RemoteFileConfiguration) endpoint.getConfiguration()); +} +} + public synchronized boolean deleteFile(String name) throws GenericFileOperationFailedException { LOG.debug("Deleting file: {}", name); try { +reconnectIfNecessary(); channel.rm(name); return true; } catch (SftpException e) { +LOG.warn("Cannot delete file: " + name, e); throw new GenericFileOperationFailedException("Cannot delete file: " + name, e); } } @@ -432,9 +440,11 @@ public class SftpOperations implements RemoteFileOperations public synchronized boolean renameFile(String from, String to) throws GenericFileOperationFailedException { LOG.debug("Renaming file: {} to: {}", from, to); try { +reconnectIfNecessary(); channel.rename(from, to); return true; } catch (SftpException e) { +LOG.warn("Cannot rename file from: " + from + " to: " + to, e); throw new GenericFileOperationFailedException("Cannot rename file from: " + from + " to: " + to, e); } } http://git-wip-us.apache.org/repos/asf/camel/blob/dff9f28c/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpConsumerDisconnectTest.java -- diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpConsumerDisconnectTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpConsumerDisconnectTest.java new file mode 100644 index 000..e3e540c --- /dev/null +++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpConsumerDisconnectTest.java @@ -0,0 +1,141 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.file.remote.sftp; + +import java.io.File; +import java.io.IOException; + +import org.apache.camel.Exchange; +import org.apache.camel.Processor; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.commons.io.FileUtils; +import org.junit.Before; +import org.junit.Test; + +public class SftpConsumerDisconnectTest
camel git commit: Fix test
Repository: camel Updated Branches: refs/heads/master 34c9a9bf1 -> 33d885925 Fix test Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/33d88592 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33d88592 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33d88592 Branch: refs/heads/master Commit: 33d885925522d90be35f685b7f50ccc66c333f7e Parents: 34c9a9b Author: lburgazzoliAuthored: Tue Jan 17 08:35:39 2017 +0100 Committer: lburgazzoli Committed: Tue Jan 17 08:35:53 2017 +0100 -- .../org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/33d88592/camel-core/src/test/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java -- diff --git a/camel-core/src/test/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java b/camel-core/src/test/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java index 661e8d7..28bb00c 100644 --- a/camel-core/src/test/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java +++ b/camel-core/src/test/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryTest.java @@ -57,11 +57,11 @@ public class CachingServiceDiscoveryTest extends ContextTestSupport { Assert.assertEquals(1, caching.getUpdatedListOfServices("no-name").size()); delegate.addServer("no-name@localhost:1112"); -Assert.assertEquals(1, caching.getUpdatedListOfServices("noname").size()); +Assert.assertEquals(1, caching.getUpdatedListOfServices("no-name").size()); // Let the cache expire Thread.sleep(1100); -Assert.assertEquals(2, caching.getUpdatedListOfServices("noname").size()); +Assert.assertEquals(2, caching.getUpdatedListOfServices("no-name").size()); } }
camel git commit: Fixed wrong issue tracker links on CONTRIBUTING.md
Repository: camel Updated Branches: refs/heads/master df077dc6b -> 34c9a9bf1 Fixed wrong issue tracker links on CONTRIBUTING.md Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/34c9a9bf Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/34c9a9bf Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/34c9a9bf Branch: refs/heads/master Commit: 34c9a9bf19f6dda624af8b5c3c3f6203efb53b24 Parents: df077dc Author: Marco Collovati <(none)> Authored: Mon Jan 16 21:20:49 2017 +0100 Committer: Willem JiangCommitted: Tue Jan 17 13:45:13 2017 +0800 -- CONTRIBUTING.md | 16 1 file changed, 8 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/34c9a9bf/CONTRIBUTING.md -- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d08ddb7..097deea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ ## Contributing to Apache Camel There are many ways you can help make Camel a better piece of software - please dive in and help! -- Try surf the documentation - if somethings confusing or not clear, let us know. -- Download the code & try it out and see what you think. +- Try surf the documentation - if somethings confusing or not clear, let us know. +- Download the code & try it out and see what you think. - Browse the source code. Got an itch to scratch, want to tune some operation or add some feature? -- Want to do some hacking on Camel? Try surfing the our [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) for open issues or features that need to be implemented, take ownership of an issue and try fix it. -- If you are a new Camel rider and would like to help us, you can also find [some easy to resolve issues.](https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide=12316782) +- Want to do some hacking on Camel? Try surfing the our [issue tracker](https://issues.apache.org/jira/browse/CAMEL) for open issues or features that need to be implemented, take ownership of an issue and try fix it. +- If you are a new Camel rider and would like to help us, you can also find [some easy to resolve issues.](https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide=12316782) - Leave a comment on the issue to let us know you are working on it and add yourself as a watcher to get informed about all modifications. @@ -49,7 +49,7 @@ To be able to edit the wiki you need ## If you find a bug or problem -Please raise a new issue in our [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) +Please raise a new issue in our [issue tracker](https://issues.apache.org/jira/browse/CAMEL) If you can create a JUnit test case then your issue is more likely to be resolved quicker. e.g. take a look at some of the existing [unit tests cases](https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/) Then we can add your issue to Subversion and then we'll know when its really fixed and we can ensure that the problem stays fixed in future releases. @@ -105,8 +105,8 @@ We recommend you create patches as github PRs which is much easier for us to acc ## Pull request at Github There is also a Git repository at Github which you could fork. Then you submit patches as any other github project - eg work on a new feature branch and send a pull request. One of the committers then needs to accept your pull request to bring the code to the ASF codebase. After the code has been included into the ASF codebase, you need to close the pull request because we can't do that... - -When providing code patches then please include the Camel JIRA ticket number in the commit messages. + +When providing code patches then please include the Camel JIRA ticket number in the commit messages. We favor using the syntax: CAMEL-: Some message goes here @@ -137,7 +137,7 @@ We prefer patches has unit tests as well and that these unit tests have proper a ## Using the issue tracker -Before you can raise an issue in the [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) you need to register with it. This is quick & painless. +Before you can raise an issue in the [issue tracker](https://issues.apache.org/jira/browse/CAMEL) you need to register with it. This is quick & painless. If you want to have a go at fixing an issue you need to be in the list of camel-developers on the issue tracker. To join the group, please mail the `d...@camel.apache.org` mail list with the email address you used to register with the issue tracker and we'll add you to the group.
buildbot success in on camel-site-production
The Buildbot has detected a restored build on builder camel-site-production while building . Full details are available at: https://ci.apache.org/builders/camel-site-production/builds/13611 Buildbot URL: https://ci.apache.org/ Buildslave for this Build: bb-cms-slave Build Reason: The Nightly scheduler named 'camel-site-production' triggered this build Build Source Stamp: [branch camel/website] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
buildbot failure in on camel-site-production
The Buildbot has detected a new failure on builder camel-site-production while building . Full details are available at: https://ci.apache.org/builders/camel-site-production/builds/13610 Buildbot URL: https://ci.apache.org/ Buildslave for this Build: bb-cms-slave Build Reason: The Nightly scheduler named 'camel-site-production' triggered this build Build Source Stamp: [branch camel/website] HEAD Blamelist: BUILD FAILED: failed compile Sincerely, -The Buildbot
[42/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-braintree-starter/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java -- diff --git a/components-starter/camel-braintree-starter/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java b/components-starter/camel-braintree-starter/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java deleted file mode 100644 index 9136399..000 --- a/components-starter/camel-braintree-starter/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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.braintree.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.braintree.BraintreeComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(BraintreeComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(BraintreeComponentConfiguration.class) -public class BraintreeComponentAutoConfiguration { - -@Lazy -@Bean(name = "braintree-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(BraintreeComponent.class) -public BraintreeComponent configureBraintreeComponent( -CamelContext camelContext, -BraintreeComponentConfiguration configuration) throws Exception { -BraintreeComponent component = new BraintreeComponent(); -component.setCamelContext(camelContext); -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -for (Map.Entry entry : parameters.entrySet()) { -Object value = entry.getValue(); -Class paramClass = value.getClass(); -if (paramClass.getName().endsWith("NestedConfiguration")) { -Class nestedClass = null; -try { -nestedClass = (Class) paramClass.getDeclaredField( -"CAMEL_NESTED_CLASS").get(null); -HashMap nestedParameters = new HashMap<>(); -IntrospectionSupport.getProperties(value, nestedParameters, -null, false); -Object nestedProperty = nestedClass.newInstance(); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), nestedProperty, -nestedParameters); -entry.setValue(nestedProperty); -} catch
[49/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-amqp-starter/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java -- diff --git a/components-starter/camel-amqp-starter/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java b/components-starter/camel-amqp-starter/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java deleted file mode 100644 index b1d49c6..000 --- a/components-starter/camel-amqp-starter/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java +++ /dev/null @@ -1,1171 +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.amqp.springboot; - -import javax.jms.ConnectionFactory; -import javax.jms.ExceptionListener; -import org.apache.camel.LoggingLevel; -import org.apache.camel.component.amqp.AMQPComponent; -import org.apache.camel.component.jms.DefaultTaskExecutorType; -import org.apache.camel.component.jms.JmsConfiguration; -import org.apache.camel.component.jms.JmsKeyFormatStrategy; -import org.apache.camel.component.jms.MessageCreatedStrategy; -import org.apache.camel.component.jms.QueueBrowseStrategy; -import org.apache.camel.component.jms.ReplyToType; -import org.apache.camel.spi.HeaderFilterStrategy; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.context.properties.DeprecatedConfigurationProperty; -import org.springframework.boot.context.properties.NestedConfigurationProperty; -import org.springframework.context.ApplicationContext; -import org.springframework.core.task.TaskExecutor; -import org.springframework.jms.core.JmsOperations; -import org.springframework.jms.support.converter.MessageConverter; -import org.springframework.jms.support.destination.DestinationResolver; -import org.springframework.transaction.PlatformTransactionManager; -import org.springframework.util.ErrorHandler; - -/** - * Messaging with AMQP protocol using Apache QPid Client. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.amqp") -public class AMQPComponentConfiguration { - -/** - * To use a shared JMS configuration - */ -@NestedConfigurationProperty -private JmsConfiguration configuration; -/** - * Specifies whether the consumer accept messages while it is stopping. You - * may consider enabling this option if you start and stop JMS routes at - * runtime while there are still messages enqueued on the queue. If this - * option is false and you stop the JMS route then messages may be rejected - * and the JMS broker would have to attempt redeliveries which yet again may - * be rejected and eventually the message may be moved at a dead letter - * queue on the JMS broker. To avoid this its recommended to enable this - * option. - */ -private Boolean acceptMessagesWhileStopping = false; -/** - * Whether the DefaultMessageListenerContainer used in the reply managers - * for request-reply messaging allow the - * DefaultMessageListenerContainer.runningAllowed flag to quick stop in case - * JmsConfigurationisAcceptMessagesWhileStopping is enabled and - * org.apache.camel.CamelContext is currently being stopped. This quick stop - * ability is enabled by default in the regular JMS consumers but to enable - * for reply managers you must enable this flag. - */ -private Boolean allowReplyManagerQuickStop = false; -/** - * The JMS acknowledgement mode defined as an Integer. Allows you to set - * vendor-specific extensions to the acknowledgment mode.For the regular - * modes it is preferable to use the acknowledgementModeName instead. - */ -private Integer acknowledgementMode; -/** - * Enables eager loading of JMS properties as soon as a message is loaded - * which generally is inefficient as the JMS properties may not be required - * but sometimes can catch early any issues with the underlying JMS
[14/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jcr-starter/src/main/java/org/apache/camel/component/jcr/springboot/JcrComponentAutoConfiguration.java -- diff --git a/components-starter/camel-jcr-starter/src/main/java/org/apache/camel/component/jcr/springboot/JcrComponentAutoConfiguration.java b/components-starter/camel-jcr-starter/src/main/java/org/apache/camel/component/jcr/springboot/JcrComponentAutoConfiguration.java deleted file mode 100644 index 21ea150..000 --- a/components-starter/camel-jcr-starter/src/main/java/org/apache/camel/component/jcr/springboot/JcrComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.jcr.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.jcr.JcrComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(JcrComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class JcrComponentAutoConfiguration { - -@Lazy -@Bean(name = "jcr-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(JcrComponent.class) -public JcrComponent configureJcrComponent(CamelContext camelContext) -throws Exception { -JcrComponent component = new JcrComponent(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.jcr"); -if (isEnabled(conditionContext, "camel.component.jcr.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jcr-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-jcr-starter/src/main/resources/META-INF/LICENSE.txt
[26/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-ganglia-starter/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java -- diff --git a/components-starter/camel-ganglia-starter/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java b/components-starter/camel-ganglia-starter/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java deleted file mode 100644 index a325c6b..000 --- a/components-starter/camel-ganglia-starter/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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.ganglia.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.ganglia.GangliaComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(GangliaComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(GangliaComponentConfiguration.class) -public class GangliaComponentAutoConfiguration { - -@Lazy -@Bean(name = "ganglia-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(GangliaComponent.class) -public GangliaComponent configureGangliaComponent( -CamelContext camelContext, -GangliaComponentConfiguration configuration) throws Exception { -GangliaComponent component = new GangliaComponent(); -component.setCamelContext(camelContext); -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -for (Map.Entry entry : parameters.entrySet()) { -Object value = entry.getValue(); -Class paramClass = value.getClass(); -if (paramClass.getName().endsWith("NestedConfiguration")) { -Class nestedClass = null; -try { -nestedClass = (Class) paramClass.getDeclaredField( -"CAMEL_NESTED_CLASS").get(null); -HashMap nestedParameters = new HashMap<>(); -IntrospectionSupport.getProperties(value, nestedParameters, -null, false); -Object nestedProperty = nestedClass.newInstance(); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), nestedProperty, -nestedParameters); -entry.setValue(nestedProperty); -} catch (NoSuchFieldException e) { -} -
[44/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-beanstalk-starter/pom.xml -- diff --git a/components-starter/camel-beanstalk-starter/pom.xml b/components-starter/camel-beanstalk-starter/pom.xml deleted file mode 100644 index e98e8c0..000 --- a/components-starter/camel-beanstalk-starter/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-beanstalk-starter - jar - Spring-Boot Starter :: Camel :: Beanstalk - Spring-Boot Starter for Camel Beanstalk component - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-beanstalk - ${project.version} - - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-beanstalk-starter/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java -- diff --git a/components-starter/camel-beanstalk-starter/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java b/components-starter/camel-beanstalk-starter/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java deleted file mode 100644 index 9f283d2..000 --- a/components-starter/camel-beanstalk-starter/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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.beanstalk.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.beanstalk.BeanstalkComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(BeanstalkComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(BeanstalkComponentConfiguration.class) -public class BeanstalkComponentAutoConfiguration { - -@Lazy -@Bean(name = "beanstalk-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(BeanstalkComponent.class) -public BeanstalkComponent configureBeanstalkComponent( -CamelContext camelContext, -BeanstalkComponentConfiguration configuration) throws Exception { -BeanstalkComponent component = new BeanstalkComponent(); -
[34/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-couchdb-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-couchdb-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-couchdb-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-couchdb-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[35/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-core-starter/src/main/java/org/apache/camel/language/xpath/springboot/XPathLanguageAutoConfiguration.java -- diff --git a/components-starter/camel-core-starter/src/main/java/org/apache/camel/language/xpath/springboot/XPathLanguageAutoConfiguration.java b/components-starter/camel-core-starter/src/main/java/org/apache/camel/language/xpath/springboot/XPathLanguageAutoConfiguration.java deleted file mode 100644 index dc8526d..000 --- a/components-starter/camel-core-starter/src/main/java/org/apache/camel/language/xpath/springboot/XPathLanguageAutoConfiguration.java +++ /dev/null @@ -1,97 +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.language.xpath.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.language.xpath.XPathLanguage; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(XPathLanguageAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(XPathLanguageConfiguration.class) -public class XPathLanguageAutoConfiguration { - -@Bean(name = "xpath-language") -@Scope("prototype") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(XPathLanguage.class) -public XPathLanguage configureXPathLanguage(CamelContext camelContext, -XPathLanguageConfiguration configuration) throws Exception { -XPathLanguage language = new XPathLanguage(); -if (CamelContextAware.class.isAssignableFrom(XPathLanguage.class)) { -CamelContextAware contextAware = CamelContextAware.class -.cast(language); -if (contextAware != null) { -contextAware.setCamelContext(camelContext); -} -} -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), language, parameters); -return language; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.language.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.language.xpath"); -if (isEnabled(conditionContext, "camel.language.xpath.", -groupEnabled)) { -return
[10/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jms-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-jms-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-jms-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-jms-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor
[46/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentAutoConfiguration.java -- diff --git a/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentAutoConfiguration.java b/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentAutoConfiguration.java deleted file mode 100644 index 192ebf0..000 --- a/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.aws.s3.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.aws.s3.S3Component; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(S3ComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class S3ComponentAutoConfiguration { - -@Lazy -@Bean(name = "aws-s3-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(S3Component.class) -public S3Component configureS3Component(CamelContext camelContext) -throws Exception { -S3Component component = new S3Component(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.aws-s3"); -if (isEnabled(conditionContext, "camel.component.aws-s3.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/sdb/springboot/SdbComponentAutoConfiguration.java -- diff --git
[23/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-grape-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-grape-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-grape-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-grape-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such
[21/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-hbase-starter/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java -- diff --git a/components-starter/camel-hbase-starter/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java b/components-starter/camel-hbase-starter/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java deleted file mode 100644 index 6118483..000 --- a/components-starter/camel-hbase-starter/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java +++ /dev/null @@ -1,110 +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.hbase.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.hbase.HBaseComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(HBaseComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(HBaseComponentConfiguration.class) -public class HBaseComponentAutoConfiguration { - -@Lazy -@Bean(name = "hbase-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(HBaseComponent.class) -public HBaseComponent configureHBaseComponent(CamelContext camelContext, -HBaseComponentConfiguration configuration) throws Exception { -HBaseComponent component = new HBaseComponent(); -component.setCamelContext(camelContext); -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -for (Map.Entry entry : parameters.entrySet()) { -Object value = entry.getValue(); -Class paramClass = value.getClass(); -if (paramClass.getName().endsWith("NestedConfiguration")) { -Class nestedClass = null; -try { -nestedClass = (Class) paramClass.getDeclaredField( -"CAMEL_NESTED_CLASS").get(null); -HashMap nestedParameters = new HashMap<>(); -IntrospectionSupport.getProperties(value, nestedParameters, -null, false); -Object nestedProperty = nestedClass.newInstance(); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), nestedProperty, -nestedParameters); -entry.setValue(nestedProperty); -} catch (NoSuchFieldException e) { -} -} -} -
[08/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jsch-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-jsch-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-jsch-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-jsch-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such
[17/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-influxdb-starter/src/main/java/org/apache/camel/component/influxdb/springboot/InfluxDbComponentAutoConfiguration.java -- diff --git a/components-starter/camel-influxdb-starter/src/main/java/org/apache/camel/component/influxdb/springboot/InfluxDbComponentAutoConfiguration.java b/components-starter/camel-influxdb-starter/src/main/java/org/apache/camel/component/influxdb/springboot/InfluxDbComponentAutoConfiguration.java deleted file mode 100644 index f7a0e26..000 --- a/components-starter/camel-influxdb-starter/src/main/java/org/apache/camel/component/influxdb/springboot/InfluxDbComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.influxdb.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.influxdb.InfluxDbComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(InfluxDbComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class InfluxDbComponentAutoConfiguration { - -@Lazy -@Bean(name = "influxdb-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(InfluxDbComponent.class) -public InfluxDbComponent configureInfluxDbComponent( -CamelContext camelContext) throws Exception { -InfluxDbComponent component = new InfluxDbComponent(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.influxdb"); -if (isEnabled(conditionContext, "camel.component.influxdb.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-influxdb-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git
[04/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-lucene-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-lucene-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-lucene-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-lucene-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[27/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-fop-starter/src/main/java/org/apache/camel/component/fop/springboot/FopComponentAutoConfiguration.java -- diff --git a/components-starter/camel-fop-starter/src/main/java/org/apache/camel/component/fop/springboot/FopComponentAutoConfiguration.java b/components-starter/camel-fop-starter/src/main/java/org/apache/camel/component/fop/springboot/FopComponentAutoConfiguration.java deleted file mode 100644 index b5afd94..000 --- a/components-starter/camel-fop-starter/src/main/java/org/apache/camel/component/fop/springboot/FopComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.fop.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.fop.FopComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(FopComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class FopComponentAutoConfiguration { - -@Lazy -@Bean(name = "fop-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(FopComponent.class) -public FopComponent configureFopComponent(CamelContext camelContext) -throws Exception { -FopComponent component = new FopComponent(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.fop"); -if (isEnabled(conditionContext, "camel.component.fop.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-fop-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-fop-starter/src/main/resources/META-INF/LICENSE.txt
[43/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-bonita-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-bonita-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-bonita-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-bonita-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[31/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-docker-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-docker-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-docker-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-docker-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[52/52] camel git commit: Fix CS
Fix CS Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/df077dc6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/df077dc6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/df077dc6 Branch: refs/heads/master Commit: df077dc6b5ca64e88d414af2f60f27965709226a Parents: 3b20e36 Author: lburgazzoliAuthored: Mon Jan 16 18:28:55 2017 +0100 Committer: lburgazzoli Committed: Mon Jan 16 18:29:16 2017 +0100 -- .../java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/df077dc6/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java -- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java index 3725acf..fff5e3f 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java @@ -308,7 +308,7 @@ public class ReadmeComponentMojo extends AbstractMojo { } // use single line headers with # as level instead of the cumbersome adoc weird style -if (line.startsWith("^^^") || line.startsWith("~~~") || line.startsWith("+++") ) { +if (line.startsWith("^^^") || line.startsWith("~~~") || line.startsWith("+++")) { String level = line.startsWith("+++") ? "" : "###"; // transform legacy heading into new style
[32/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-disruptor-starter/pom.xml -- diff --git a/components-starter/camel-disruptor-starter/pom.xml b/components-starter/camel-disruptor-starter/pom.xml deleted file mode 100644 index ba416ac..000 --- a/components-starter/camel-disruptor-starter/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-disruptor-starter - jar - Spring-Boot Starter :: Camel :: Disruptor - Spring-Boot Starter for Camel :: Disruptor component - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-disruptor - ${project.version} - - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentAutoConfiguration.java -- diff --git a/components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentAutoConfiguration.java b/components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentAutoConfiguration.java deleted file mode 100644 index 2ede6c8..000 --- a/components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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.disruptor.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.disruptor.DisruptorComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(DisruptorComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(DisruptorComponentConfiguration.class) -public class DisruptorComponentAutoConfiguration { - -@Lazy -@Bean(name = "disruptor-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(DisruptorComponent.class) -public DisruptorComponent configureDisruptorComponent( -CamelContext camelContext, -DisruptorComponentConfiguration configuration) throws Exception { -DisruptorComponent component = new DisruptorComponent(); -
[24/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java -- diff --git a/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java b/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java deleted file mode 100644 index 6c7b5b5..000 --- a/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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.google.mail.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.google.mail.GoogleMailComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(GoogleMailComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(GoogleMailComponentConfiguration.class) -public class GoogleMailComponentAutoConfiguration { - -@Lazy -@Bean(name = "google-mail-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(GoogleMailComponent.class) -public GoogleMailComponent configureGoogleMailComponent( -CamelContext camelContext, -GoogleMailComponentConfiguration configuration) throws Exception { -GoogleMailComponent component = new GoogleMailComponent(); -component.setCamelContext(camelContext); -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -for (Map.Entry entry : parameters.entrySet()) { -Object value = entry.getValue(); -Class paramClass = value.getClass(); -if (paramClass.getName().endsWith("NestedConfiguration")) { -Class nestedClass = null; -try { -nestedClass = (Class) paramClass.getDeclaredField( -"CAMEL_NESTED_CLASS").get(null); -HashMap nestedParameters = new HashMap<>(); -IntrospectionSupport.getProperties(value, nestedParameters, -null, false); -Object nestedProperty = nestedClass.newInstance(); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), nestedProperty, -nestedParameters); -
[30/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-dropbox-starter/src/main/resources/META-INF/spring.provides -- diff --git a/components-starter/camel-dropbox-starter/src/main/resources/META-INF/spring.provides b/components-starter/camel-dropbox-starter/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 57a3a60..000 --- a/components-starter/camel-dropbox-starter/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1,18 +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. -# - -provides: camel-dropbox \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-eclipse-starter/pom.xml -- diff --git a/components-starter/camel-eclipse-starter/pom.xml b/components-starter/camel-eclipse-starter/pom.xml deleted file mode 100644 index 61b3e39..000 --- a/components-starter/camel-eclipse-starter/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-eclipse-starter - jar - Spring-Boot Starter :: Camel :: Eclipse - Spring-Boot Starter for Camel Eclipse support - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-eclipse - ${project.version} - - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-eclipse-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-eclipse-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-eclipse-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-eclipse-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is
[12/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jibx-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-jibx-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-jibx-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-jibx-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such
[03/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java -- diff --git a/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java b/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java deleted file mode 100644 index 5cc29b7..000 --- a/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java +++ /dev/null @@ -1,565 +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.mail.springboot; - -import java.util.Properties; -import javax.mail.Session; -import org.apache.camel.component.mail.AttachmentsContentTransferEncodingResolver; -import org.apache.camel.component.mail.ContentTypeResolver; -import org.apache.camel.component.mail.JavaMailSender; -import org.apache.camel.util.jsse.SSLContextParameters; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.context.properties.NestedConfigurationProperty; - -/** - * To send or receive emails using imap/pop3 or stmp protocols. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.mail") -public class MailComponentConfiguration { - -/** - * Sets the Mail configuration - */ -private MailConfigurationNestedConfiguration configuration; -/** - * Resolver to determine Content-Type for file attachments. - */ -@NestedConfigurationProperty -private ContentTypeResolver contentTypeResolver; - -public MailConfigurationNestedConfiguration getConfiguration() { -return configuration; -} - -public void setConfiguration( -MailConfigurationNestedConfiguration configuration) { -this.configuration = configuration; -} - -public ContentTypeResolver getContentTypeResolver() { -return contentTypeResolver; -} - -public void setContentTypeResolver(ContentTypeResolver contentTypeResolver) { -this.contentTypeResolver = contentTypeResolver; -} - -public static class MailConfigurationNestedConfiguration { -public static final Class CAMEL_NESTED_CLASS = org.apache.camel.component.mail.MailConfiguration.class; -/** - * To use a custom - * {@link org.apache.camel.component.mail.JavaMailSender} for sending - * emails. - */ -private JavaMailSender javaMailSender; -/** - * The mail server host name - */ -private String host; -/** - * Sets the java mail options. Will clear any default properties and - * only use the properties provided for this method. - */ -private Properties javaMailProperties; -/** - * Sets additional java mail properties, that will append/override any - * default properties that is set based on all the other options. This - * is useful if you need to add some special options but want to keep - * the others as is. - */ -private Properties additionalJavaMailProperties; -/** - * The password for login - */ -private String password; -/** - * The Subject of the message being sent. Note: Setting the subject in - * the header takes precedence over this option. - */ -private String subject; -/** - * The port number of the mail server - */ -private Integer port; -/** - * The protocol for communicating with the mail server - */ -private String protocol; -/** - * Specifies the mail session that camel should use for all mail - * interactions. Useful in scenarios where mail sessions are created and - * managed by some other resource, such as a JavaEE container. If this - * is not
[07/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-juel-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-juel-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-juel-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-juel-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such
[50/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/README.adoc -- diff --git a/components-starter/README.adoc b/components-starter/README.adoc deleted file mode 100755 index 868d38c..000 --- a/components-starter/README.adoc +++ /dev/null @@ -1,27 +0,0 @@ -= Camel Component Starters - -Starters are Apache Camel modules intended to be used in Spring Boot applications. -There is a `camel-xxx-starter` module for each Camel component (with few exceptions listed below). - -Starters are created to meet the following requirements: - -* Allow the auto-configuration of the component through the native spring-boot configuration system (compatible with IDE tooling) -* Manage transitive logging dependencies to better integrate with spring-boot logging system -* Include additional dependencies and align transitive ones to minimize the effort of creating a working spring-boot application - -Each starter has its own integration test (in path `tests/camel-itest-spring-boot`) that verifies its compatibility with the current release of spring-boot. - -The following components do not have a starter because of compatibility issues: - -* **camel-blueprint** (intended for OSGi only) -* **camel-cdi** (intended for CDI only) -* **camel-core-osgi** (intended for OSGi only) -* **camel-ejb** (intended for JEE only) -* **camel-eventadmin** (intended for OSGi only) -* **camel-ibatis** (`camel-mybatis-starter` is included) -* **camel-jclouds** -* **camel-mina** (`camel-mina2-starter` is included) -* **camel-paxlogging** (intended for OSGi only) -* **camel-quartz** (`camel-quartz2-starter` is included) -* **camel-spark-rest** -* **camel-swagger** (`camel-swagger-java-starter` is included) http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-ahc-starter/pom.xml -- diff --git a/components-starter/camel-ahc-starter/pom.xml b/components-starter/camel-ahc-starter/pom.xml deleted file mode 100644 index ce7879c..000 --- a/components-starter/camel-ahc-starter/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-ahc-starter - jar - Spring-Boot Starter :: Camel :: AHC - Spring-Boot Starter for Camel Async Http Client support - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-ahc - ${project.version} - - - - io.netty - netty-all - ${ahc-netty-version} - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-ahc-starter/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentAutoConfiguration.java -- diff --git a/components-starter/camel-ahc-starter/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentAutoConfiguration.java b/components-starter/camel-ahc-starter/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentAutoConfiguration.java deleted file mode 100644 index 9ecf975..000 --- a/components-starter/camel-ahc-starter/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentAutoConfiguration.java +++ /dev/null @@ -1,110 +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.ahc.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.ahc.AhcComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import
[13/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java -- diff --git a/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java b/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java deleted file mode 100644 index 3ac3ed9..000 --- a/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java +++ /dev/null @@ -1,111 +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.jetty9.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jetty9.JettyHttpComponent9; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(JettyHttpComponentAutoConfiguration9.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(JettyHttpComponentConfiguration9.class) -public class JettyHttpComponentAutoConfiguration9 { - -@Lazy -@Bean(name = "jetty-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(JettyHttpComponent9.class) -public JettyHttpComponent9 configureJettyHttpComponent9( -CamelContext camelContext, -JettyHttpComponentConfiguration9 configuration) throws Exception { -JettyHttpComponent9 component = new JettyHttpComponent9(); -component.setCamelContext(camelContext); -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -for (Map.Entry entry : parameters.entrySet()) { -Object value = entry.getValue(); -Class paramClass = value.getClass(); -if (paramClass.getName().endsWith("NestedConfiguration")) { -Class nestedClass = null; -try { -nestedClass = (Class) paramClass.getDeclaredField( -"CAMEL_NESTED_CLASS").get(null); -HashMap nestedParameters = new HashMap<>(); -IntrospectionSupport.getProperties(value, nestedParameters, -null, false); -Object nestedProperty = nestedClass.newInstance(); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), nestedProperty, -nestedParameters); -entry.setValue(nestedProperty); -} catch (NoSuchFieldException
[45/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-barcode-starter/src/main/resources/META-INF/NOTICE.txt -- diff --git a/components-starter/camel-barcode-starter/src/main/resources/META-INF/NOTICE.txt b/components-starter/camel-barcode-starter/src/main/resources/META-INF/NOTICE.txt deleted file mode 100644 index 2e215bf..000 --- a/components-starter/camel-barcode-starter/src/main/resources/META-INF/NOTICE.txt +++ /dev/null @@ -1,11 +0,0 @@ - = - == NOTICE file corresponding to the section 4 d of== - == the Apache License, Version 2.0, == - == in this case for the Apache Camel distribution.== - = - - This product includes software developed by - The Apache Software Foundation (http://www.apache.org/). - - Please read the different LICENSE files present in the licenses directory of - this distribution. http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-barcode-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json -- diff --git a/components-starter/camel-barcode-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/components-starter/camel-barcode-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json deleted file mode 100644 index b837fea..000 --- a/components-starter/camel-barcode-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "properties": [ -{ - "defaultValue": true, - "name": "camel.dataformat.barcode.enabled", - "description": "Enable barcode dataformat", - "type": "java.lang.Boolean" -} - ] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.factories -- diff --git a/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.factories b/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 943c017..000 --- a/components-starter/camel-barcode-starter/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.barcode.springboot.BarcodeDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.provides -- diff --git a/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.provides b/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 79922ce..000 --- a/components-starter/camel-barcode-starter/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1,18 +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. -# -
[40/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-cm-sms-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-cm-sms-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-cm-sms-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-cm-sms-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[22/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-guava-eventbus-starter/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java -- diff --git a/components-starter/camel-guava-eventbus-starter/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java b/components-starter/camel-guava-eventbus-starter/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java deleted file mode 100644 index 800e994..000 --- a/components-starter/camel-guava-eventbus-starter/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java +++ /dev/null @@ -1,61 +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.guava.eventbus.springboot; - -import com.google.common.eventbus.EventBus; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.context.properties.NestedConfigurationProperty; - -/** - * The guava-eventbus component provides integration bridge between Camel and - * Google Guava EventBus. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.guava-eventbus") -public class GuavaEventBusComponentConfiguration { - -/** - * To use the given Guava EventBus instance - */ -@NestedConfigurationProperty -private EventBus eventBus; -/** - * The interface with method(s) marked with the Subscribe annotation. - * Dynamic proxy will be created over the interface so it could be - * registered as the EventBus listener. Particularly useful when creating - * multi-event listeners and for handling DeadEvent properly. This option - * cannot be used together with eventClass option. - */ -private Class listenerInterface; - -public EventBus getEventBus() { -return eventBus; -} - -public void setEventBus(EventBus eventBus) { -this.eventBus = eventBus; -} - -public Class getListenerInterface() { -return listenerInterface; -} - -public void setListenerInterface(Class listenerInterface) { -this.listenerInterface = listenerInterface; -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-guava-eventbus-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-guava-eventbus-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-guava-eventbus-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-guava-eventbus-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source"
[25/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-github-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-github-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-github-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-github-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[15/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-javaspace-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json -- diff --git a/components-starter/camel-javaspace-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/components-starter/camel-javaspace-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json deleted file mode 100644 index 09ebf0c..000 --- a/components-starter/camel-javaspace-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "properties": [ -{ - "defaultValue": true, - "name": "camel.component.javaspace.enabled", - "description": "Enable javaspace component", - "type": "java.lang.Boolean" -} - ] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.factories -- diff --git a/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.factories b/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.factories deleted file mode 100644 index cddf281..000 --- a/components-starter/camel-javaspace-starter/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.javaspace.springboot.JavaSpaceComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.provides -- diff --git a/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.provides b/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 85abd9f..000 --- a/components-starter/camel-javaspace-starter/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1,18 +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. -# - -provides: camel-javaspace \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jaxb-starter/pom.xml -- diff --git a/components-starter/camel-jaxb-starter/pom.xml b/components-starter/camel-jaxb-starter/pom.xml deleted file mode 100644 index 384bbb6..000 --- a/components-starter/camel-jaxb-starter/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-jaxb-starter - jar - Spring-Boot Starter :: Camel :: JAXB - Spring-Boot Starter for Camel JAXB support - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-jaxb - ${project.version} - - - - org.apache.camel - camel-core-starter - - -
[19/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-http-common-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-http-common-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-http-common-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-http-common-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims
[37/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/rest/springboot/RestComponentConfiguration.java -- diff --git a/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/rest/springboot/RestComponentConfiguration.java b/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/rest/springboot/RestComponentConfiguration.java deleted file mode 100644 index f7c37d1..000 --- a/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/rest/springboot/RestComponentConfiguration.java +++ /dev/null @@ -1,72 +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.rest.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The rest component is used for either hosting REST services (consumer) or - * calling external REST services (producer). - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.rest") -public class RestComponentConfiguration { - -/** - * The Camel Rest component to use for the REST transport such as restlet - * spark-rest. If no component has been explicit configured then Camel will - * lookup if there is a Camel component that integrates with the Rest DSL or - * if a org.apache.camel.spi.RestConsumerFactory (consumer) or - * org.apache.camel.spi.RestProducerFactory (producer) is registered in the - * registry. If either one is found then that is being used. - */ -private String componentName; -/** - * The swagger api doc resource to use. The resource is loaded from - * classpath by default and must be in JSon format. - */ -private String apiDoc; -/** - * Host and port of HTTP service to use (override host in swagger schema) - */ -private String host; - -public String getComponentName() { -return componentName; -} - -public void setComponentName(String componentName) { -this.componentName = componentName; -} - -public String getApiDoc() { -return apiDoc; -} - -public void setApiDoc(String apiDoc) { -this.apiDoc = apiDoc; -} - -public String getHost() { -return host; -} - -public void setHost(String host) { -this.host = host; -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java -- diff --git a/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java b/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java deleted file mode 100644 index 7521585..000 --- a/components-starter/camel-core-starter/src/main/java/org/apache/camel/component/scheduler/springboot/SchedulerComponentAutoConfiguration.java +++ /dev/null @@ -1,111 +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
[11/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-jms-starter/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java -- diff --git a/components-starter/camel-jms-starter/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java b/components-starter/camel-jms-starter/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java deleted file mode 100644 index d367b3a..000 --- a/components-starter/camel-jms-starter/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java +++ /dev/null @@ -1,2496 +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.jms.springboot; - -import javax.jms.ConnectionFactory; -import javax.jms.ExceptionListener; -import org.apache.camel.LoggingLevel; -import org.apache.camel.component.jms.ConsumerType; -import org.apache.camel.component.jms.DefaultTaskExecutorType; -import org.apache.camel.component.jms.JmsComponent; -import org.apache.camel.component.jms.JmsKeyFormatStrategy; -import org.apache.camel.component.jms.JmsMessageType; -import org.apache.camel.component.jms.JmsProviderMetadata; -import org.apache.camel.component.jms.MessageCreatedStrategy; -import org.apache.camel.component.jms.MessageListenerContainerFactory; -import org.apache.camel.component.jms.QueueBrowseStrategy; -import org.apache.camel.component.jms.ReplyToType; -import org.apache.camel.spi.HeaderFilterStrategy; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.context.properties.DeprecatedConfigurationProperty; -import org.springframework.boot.context.properties.NestedConfigurationProperty; -import org.springframework.context.ApplicationContext; -import org.springframework.core.task.TaskExecutor; -import org.springframework.jms.core.JmsOperations; -import org.springframework.jms.support.converter.MessageConverter; -import org.springframework.jms.support.destination.DestinationResolver; -import org.springframework.transaction.PlatformTransactionManager; -import org.springframework.util.ErrorHandler; - -/** - * The jms component allows messages to be sent to (or consumed from) a JMS - * Queue or Topic. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jms") -public class JmsComponentConfiguration { - -/** - * To use a shared JMS configuration - */ -private JmsConfigurationNestedConfiguration configuration; -/** - * Specifies whether the consumer accept messages while it is stopping. You - * may consider enabling this option if you start and stop JMS routes at - * runtime while there are still messages enqueued on the queue. If this - * option is false and you stop the JMS route then messages may be rejected - * and the JMS broker would have to attempt redeliveries which yet again may - * be rejected and eventually the message may be moved at a dead letter - * queue on the JMS broker. To avoid this its recommended to enable this - * option. - */ -private Boolean acceptMessagesWhileStopping = false; -/** - * Whether the DefaultMessageListenerContainer used in the reply managers - * for request-reply messaging allow the - * DefaultMessageListenerContainer.runningAllowed flag to quick stop in case - * JmsConfigurationisAcceptMessagesWhileStopping is enabled and - * org.apache.camel.CamelContext is currently being stopped. This quick stop - * ability is enabled by default in the regular JMS consumers but to enable - * for reply managers you must enable this flag. - */ -private Boolean allowReplyManagerQuickStop = false; -/** - * The JMS acknowledgement mode defined as an Integer. Allows you to set - * vendor-specific extensions to the acknowledgment mode. For the regular - * modes it is preferable to use the acknowledgementModeName instead. - */ -private Integer acknowledgementMode; -/** - * Enables eager loading of JMS properties
[33/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-csv-starter/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java -- diff --git a/components-starter/camel-csv-starter/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java b/components-starter/camel-csv-starter/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java deleted file mode 100644 index 15298a3..000 --- a/components-starter/camel-csv-starter/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatAutoConfiguration.java +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.csv.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.csv.CsvDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(CsvDataFormatAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(CsvDataFormatConfiguration.class) -public class CsvDataFormatAutoConfiguration { - -@Bean(name = "csv-dataformat") -@Scope("prototype") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(CsvDataFormat.class) -public CsvDataFormat configureCsvDataFormat(CamelContext camelContext, -CsvDataFormatConfiguration configuration) throws Exception { -CsvDataFormat dataformat = new CsvDataFormat(); -if (CamelContextAware.class.isAssignableFrom(CsvDataFormat.class)) { -CamelContextAware contextAware = CamelContextAware.class -.cast(dataformat); -if (contextAware != null) { -contextAware.setCamelContext(camelContext); -} -} -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), dataformat, parameters); -return dataformat; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.dataformat.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.dataformat.csv"); -if (isEnabled(conditionContext, "camel.dataformat.csv.", -groupEnabled)) { -return
[05/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-ldap-starter/src/main/java/org/apache/camel/component/ldap/springboot/LdapComponentAutoConfiguration.java -- diff --git a/components-starter/camel-ldap-starter/src/main/java/org/apache/camel/component/ldap/springboot/LdapComponentAutoConfiguration.java b/components-starter/camel-ldap-starter/src/main/java/org/apache/camel/component/ldap/springboot/LdapComponentAutoConfiguration.java deleted file mode 100644 index 9a541be..000 --- a/components-starter/camel-ldap-starter/src/main/java/org/apache/camel/component/ldap/springboot/LdapComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.ldap.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.ldap.LdapComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(LdapComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class LdapComponentAutoConfiguration { - -@Lazy -@Bean(name = "ldap-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(LdapComponent.class) -public LdapComponent configureLdapComponent(CamelContext camelContext) -throws Exception { -LdapComponent component = new LdapComponent(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.ldap"); -if (isEnabled(conditionContext, "camel.component.ldap.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-ldap-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-ldap-starter/src/main/resources/META-INF/LICENSE.txt
[47/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-atom-starter/src/main/java/org/apache/camel/component/atom/springboot/AtomComponentAutoConfiguration.java -- diff --git a/components-starter/camel-atom-starter/src/main/java/org/apache/camel/component/atom/springboot/AtomComponentAutoConfiguration.java b/components-starter/camel-atom-starter/src/main/java/org/apache/camel/component/atom/springboot/AtomComponentAutoConfiguration.java deleted file mode 100644 index c39a6c4..000 --- a/components-starter/camel-atom-starter/src/main/java/org/apache/camel/component/atom/springboot/AtomComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.atom.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.atom.AtomComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Lazy; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(AtomComponentAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -public class AtomComponentAutoConfiguration { - -@Lazy -@Bean(name = "atom-component") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(AtomComponent.class) -public AtomComponent configureAtomComponent(CamelContext camelContext) -throws Exception { -AtomComponent component = new AtomComponent(); -component.setCamelContext(camelContext); -return component; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.component.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.component.atom"); -if (isEnabled(conditionContext, "camel.component.atom.", -groupEnabled)) { -return ConditionOutcome.match(message.because("enabled")); -} -return ConditionOutcome.noMatch(message.because("not enabled")); -} - -private boolean isEnabled( -org.springframework.context.annotation.ConditionContext context, -java.lang.String prefix, boolean defaultValue) { -RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( -context.getEnvironment(), prefix); -return resolver.getProperty("enabled", Boolean.class, defaultValue); -} -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-atom-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-atom-starter/src/main/resources/META-INF/LICENSE.txt
[20/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java -- diff --git a/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java b/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java deleted file mode 100644 index 17546ea..000 --- a/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatAutoConfiguration.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.hessian.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.hessian.HessianDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(HessianDataFormatAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(HessianDataFormatConfiguration.class) -public class HessianDataFormatAutoConfiguration { - -@Bean(name = "hessian-dataformat") -@Scope("prototype") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(HessianDataFormat.class) -public HessianDataFormat configureHessianDataFormat( -CamelContext camelContext, -HessianDataFormatConfiguration configuration) throws Exception { -HessianDataFormat dataformat = new HessianDataFormat(); -if (CamelContextAware.class.isAssignableFrom(HessianDataFormat.class)) { -CamelContextAware contextAware = CamelContextAware.class -.cast(dataformat); -if (contextAware != null) { -contextAware.setCamelContext(camelContext); -} -} -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), dataformat, parameters); -return dataformat; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.dataformat.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.dataformat.hessian"); -if
[36/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-core-starter/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java -- diff --git a/components-starter/camel-core-starter/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java b/components-starter/camel-core-starter/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java deleted file mode 100644 index e3ebb70..000 --- a/components-starter/camel-core-starter/src/main/java/org/apache/camel/impl/springboot/StringDataFormatAutoConfiguration.java +++ /dev/null @@ -1,98 +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.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.SpringBootCondition; -import org.springframework.boot.bind.RelaxedPropertyResolver; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ConditionContext; -import org.springframework.context.annotation.Conditional; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.core.type.AnnotatedTypeMetadata; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@Conditional(StringDataFormatAutoConfiguration.Condition.class) -@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration") -@EnableConfigurationProperties(StringDataFormatConfiguration.class) -public class StringDataFormatAutoConfiguration { - -@Bean(name = "string-dataformat") -@Scope("prototype") -@ConditionalOnClass(CamelContext.class) -@ConditionalOnMissingBean(StringDataFormat.class) -public StringDataFormat configureStringDataFormat( -CamelContext camelContext, -StringDataFormatConfiguration configuration) throws Exception { -StringDataFormat dataformat = new StringDataFormat(); -if (CamelContextAware.class.isAssignableFrom(StringDataFormat.class)) { -CamelContextAware contextAware = CamelContextAware.class -.cast(dataformat); -if (contextAware != null) { -contextAware.setCamelContext(camelContext); -} -} -Mapparameters = new HashMap<>(); -IntrospectionSupport.getProperties(configuration, parameters, null, -false); -IntrospectionSupport.setProperties(camelContext, -camelContext.getTypeConverter(), dataformat, parameters); -return dataformat; -} - -public static class Condition extends SpringBootCondition { -@Override -public ConditionOutcome getMatchOutcome( -ConditionContext conditionContext, -AnnotatedTypeMetadata annotatedTypeMetadata) { -boolean groupEnabled = isEnabled(conditionContext, -"camel.dataformat.", true); -ConditionMessage.Builder message = ConditionMessage -.forCondition("camel.dataformat.string"); -if (isEnabled(conditionContext, "camel.dataformat.string.", -groupEnabled)) { -return
[41/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-cassandraql-starter/src/main/resources/META-INF/spring.provides -- diff --git a/components-starter/camel-cassandraql-starter/src/main/resources/META-INF/spring.provides b/components-starter/camel-cassandraql-starter/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 8148b59..000 --- a/components-starter/camel-cassandraql-starter/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1,18 +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. -# - -provides: camel-cassandraql \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-castor-starter/pom.xml -- diff --git a/components-starter/camel-castor-starter/pom.xml b/components-starter/camel-castor-starter/pom.xml deleted file mode 100644 index 06f5f56..000 --- a/components-starter/camel-castor-starter/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-castor-starter - jar - Spring-Boot Starter :: Camel :: Castor (deprecated) - Spring-Boot Starter for Camel Castor data format support - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-castor - ${project.version} - - - - commons-logging - commons-logging - - - - - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-castor-starter/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java -- diff --git a/components-starter/camel-castor-starter/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java b/components-starter/camel-castor-starter/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java deleted file mode 100644 index 07ec505..000 --- a/components-starter/camel-castor-starter/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.castor.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.castor.CastorDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import
[48/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-apns-starter/src/main/resources/META-INF/spring.provides -- diff --git a/components-starter/camel-apns-starter/src/main/resources/META-INF/spring.provides b/components-starter/camel-apns-starter/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 88d34ef..000 --- a/components-starter/camel-apns-starter/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1,18 +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. -# - -provides: camel-apns \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-asterisk-starter/pom.xml -- diff --git a/components-starter/camel-asterisk-starter/pom.xml b/components-starter/camel-asterisk-starter/pom.xml deleted file mode 100644 index 57940c8..000 --- a/components-starter/camel-asterisk-starter/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - -http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> - 4.0.0 - -org.apache.camel -components-starter -2.19.0-SNAPSHOT - - camel-asterisk-starter - jar - Spring-Boot Starter :: Camel :: Asterisk - Spring-Boot Starter for Camel Asterisk to interact with an Asterisk PBX Server - - - org.springframework.boot - spring-boot-starter - ${spring-boot-version} - - - org.apache.camel - camel-asterisk - ${project.version} - - - - log4j - log4j - - - - - - - org.apache.camel - camel-core-starter - - - org.apache.camel - camel-spring-boot-starter - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-asterisk-starter/src/main/java/org/apache/camel/component/asterisk/springboot/AsteriskComponentAutoConfiguration.java -- diff --git a/components-starter/camel-asterisk-starter/src/main/java/org/apache/camel/component/asterisk/springboot/AsteriskComponentAutoConfiguration.java b/components-starter/camel-asterisk-starter/src/main/java/org/apache/camel/component/asterisk/springboot/AsteriskComponentAutoConfiguration.java deleted file mode 100644 index 1faa558..000 --- a/components-starter/camel-asterisk-starter/src/main/java/org/apache/camel/component/asterisk/springboot/AsteriskComponentAutoConfiguration.java +++ /dev/null @@ -1,80 +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.asterisk.springboot; - -import org.apache.camel.CamelContext; -import org.apache.camel.component.asterisk.AsteriskComponent; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionMessage; -import org.springframework.boot.autoconfigure.condition.ConditionOutcome; -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import
[06/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-kestrel-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-kestrel-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-kestrel-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-kestrel-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by
[29/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-elsql-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-elsql-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-elsql-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-elsql-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such
[01/52] [partial] camel git commit: CAMEL-10622: Move spring-boot components starter to platforms/spring-boot/
Repository: camel Updated Branches: refs/heads/master 80f746dfd -> df077dc6b http://git-wip-us.apache.org/repos/asf/camel/blob/3b20e362/components-starter/camel-mongodb-starter/src/main/resources/META-INF/LICENSE.txt -- diff --git a/components-starter/camel-mongodb-starter/src/main/resources/META-INF/LICENSE.txt b/components-starter/camel-mongodb-starter/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 6b0b127..000 --- a/components-starter/camel-mongodb-starter/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 -http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, -
[1/2] camel git commit: CAMEL-10710: ServiceCall EIP : improve Java DSL
Repository: camel Updated Branches: refs/heads/master fdb508a84 -> 80f746dfd http://git-wip-us.apache.org/repos/asf/camel/blob/80f746df/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/cloud/EtcdServiceCallRouteTest.java -- diff --git a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/cloud/EtcdServiceCallRouteTest.java b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/cloud/EtcdServiceCallRouteTest.java index 766eeca..85b1d64 100644 --- a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/cloud/EtcdServiceCallRouteTest.java +++ b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/cloud/EtcdServiceCallRouteTest.java @@ -27,8 +27,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import mousio.etcd4j.EtcdClient; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.cloud.ServiceDiscovery; -import org.apache.camel.component.etcd.EtcdConfiguration; import org.apache.camel.component.etcd.EtcdHelper; import org.apache.camel.component.etcd.EtcdTestSupport; import org.junit.Test; @@ -96,15 +94,12 @@ public class EtcdServiceCallRouteTest extends EtcdTestSupport { return new RouteBuilder() { @Override public void configure() throws Exception { -EtcdConfiguration configuration = new EtcdConfiguration(null); -ServiceDiscovery discovery = new EtcdOnDemandServiceDiscovery(configuration); - from("direct:start") .serviceCall() .name(SERVICE_NAME) -.component("http") -.serviceDiscovery(discovery) -.end() +.etcdServiceDiscovery() +.type("on-demand") +.endParent() .to("log:org.apache.camel.component.etcd.processor.service?level=INFO=true=true") .to("mock:result"); http://git-wip-us.apache.org/repos/asf/camel/blob/80f746df/components/camel-ribbon/src/test/java/org/apache/camel/component/ribbon/cloud/RibbonServiceCallRouteDslTest.java -- diff --git a/components/camel-ribbon/src/test/java/org/apache/camel/component/ribbon/cloud/RibbonServiceCallRouteDslTest.java b/components/camel-ribbon/src/test/java/org/apache/camel/component/ribbon/cloud/RibbonServiceCallRouteDslTest.java new file mode 100644 index 000..c2f8b67 --- /dev/null +++ b/components/camel-ribbon/src/test/java/org/apache/camel/component/ribbon/cloud/RibbonServiceCallRouteDslTest.java @@ -0,0 +1,65 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.ribbon.cloud; + +import org.apache.camel.RoutesBuilder; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.test.junit4.CamelTestSupport; +import org.junit.Test; + +public class RibbonServiceCallRouteDslTest extends CamelTestSupport { +@Test +public void testServiceCall() throws Exception { +getMockEndpoint("mock:9090").expectedMessageCount(1); +getMockEndpoint("mock:9091").expectedMessageCount(1); +getMockEndpoint("mock:result").expectedMessageCount(2); + +String out = template.requestBody("direct:start", null, String.class); +String out2 = template.requestBody("direct:start", null, String.class); +assertEquals("9091", out); +assertEquals("9090", out2); + +assertMockEndpointsSatisfied(); +} + +@Override +protected RoutesBuilder createRouteBuilder() throws Exception { +return new RouteBuilder() { +@Override +public void configure() throws Exception { +from("direct:start") +.serviceCall() +.name("myService") +.ribbonLoadBalancer() +.end() +.staticServiceDiscovery() +.server("localhost:9090") +
[2/2] camel git commit: CAMEL-10710: ServiceCall EIP : improve Java DSL
CAMEL-10710: ServiceCall EIP : improve Java DSL Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/80f746df Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/80f746df Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/80f746df Branch: refs/heads/master Commit: 80f746dfd38da6e5a4812de0fccfcaefd07e9edd Parents: fdb508a Author: lburgazzoliAuthored: Mon Jan 16 17:08:03 2017 +0100 Committer: lburgazzoli Committed: Mon Jan 16 17:08:03 2017 +0100 -- .../impl/cloud/CachingServiceDiscovery.java | 10 +- .../cloud/CachingServiceDiscoveryFactory.java | 78 .../camel/impl/cloud/MultiServiceDiscovery.java | 59 ++ .../cloud/MultiServiceDiscoveryFactory.java | 54 ++ .../impl/cloud/StaticServiceDiscovery.java | 9 +- ...erviceCallServiceDiscoveryConfiguration.java | 190 +++ ...erviceCallServiceDiscoveryConfiguration.java | 169 + .../ServiceCallConfigurationDefinition.java | 66 +++ .../model/cloud/ServiceCallDefinition.java | 68 +++ .../ServiceCallExpressionConfiguration.java | 26 ++- .../ServiceCallLoadBalancerConfiguration.java | 24 ++- .../ServiceCallServiceChooserConfiguration.java | 22 ++- ...erviceCallServiceDiscoveryConfiguration.java | 24 ++- .../ServiceCallServiceFilterConfiguration.java | 24 ++- ...erviceCallServiceDiscoveryConfiguration.java | 19 ++ .../camel/cloud/caching-service-discovery | 17 ++ .../apache/camel/cloud/multi-service-discovery | 17 ++ .../org/apache/camel/model/cloud/jaxb.index | 2 + ...chingServiceCallServiceListStrategyTest.java | 56 -- .../impl/cloud/CachingServiceDiscoveryTest.java | 67 +++ .../impl/cloud/MultiServiceDiscoveryTest.java | 71 +++ .../ConsulDefaultServiceCallRouteTest.java | 112 +++ .../cloud/ConsulRibbonServiceCallRouteTest.java | 114 +++ .../cloud/ConsulServiceCallRouteTest.java | 118 .../etcd/cloud/EtcdServiceCallRouteTest.java| 11 +- .../cloud/RibbonServiceCallRouteDslTest.java| 65 +++ .../cloud/ServiceCallConfigurationTest.java | 18 +- .../cloud/ServiceCallConfigurationTest.xml | 12 +- 28 files changed, 1293 insertions(+), 229 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/80f746df/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscovery.java -- diff --git a/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscovery.java b/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscovery.java index 39394bb..56ee5fb 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscovery.java +++ b/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscovery.java @@ -33,10 +33,18 @@ public class CachingServiceDiscovery implements ServiceDiscovery { private long timeout; public CachingServiceDiscovery(ServiceDiscovery delegate) { +this(delegate, 60 * 1000); +} + +public CachingServiceDiscovery(ServiceDiscovery delegate, long timeout) { this.delegate = ObjectHelper.notNull(delegate, "delegate"); this.lastUpdate = 0; this.services = Collections.emptyList(); -this.timeout = 60 * 1000; // 1 min; +this.timeout = timeout; +} + +public ServiceDiscovery getDelegate() { +return this.delegate; } public void setTimeout(long timeout) { http://git-wip-us.apache.org/repos/asf/camel/blob/80f746df/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryFactory.java -- diff --git a/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryFactory.java b/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryFactory.java new file mode 100644 index 000..7accae3 --- /dev/null +++ b/camel-core/src/main/java/org/apache/camel/impl/cloud/CachingServiceDiscoveryFactory.java @@ -0,0 +1,78 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS,
camel git commit: Upgrade JGroups to version 3.6.12.Final
Repository: camel Updated Branches: refs/heads/master de914aaea -> fdb508a84 Upgrade JGroups to version 3.6.12.Final Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fdb508a8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fdb508a8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fdb508a8 Branch: refs/heads/master Commit: fdb508a8431318110daa7adcc2672513eea1bb99 Parents: de914aa Author: Andrea CosentinoAuthored: Mon Jan 16 13:37:20 2017 +0100 Committer: Andrea Cosentino Committed: Mon Jan 16 13:39:07 2017 +0100 -- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/fdb508a8/parent/pom.xml -- diff --git a/parent/pom.xml b/parent/pom.xml index bf308c6..da46be3 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -335,7 +335,7 @@ org.eclipse.jetty 1.3.8 4.6.0.201612231935-r -3.6.11.Final +3.6.12.Final 0.9.3 1.2.6 20030619_5
[2/2] camel git commit: camel-catalog - Make it possible to grab the lenient properties from an url.
camel-catalog - Make it possible to grab the lenient properties from an url. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/96aa5be3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/96aa5be3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/96aa5be3 Branch: refs/heads/camel-2.18.x Commit: 96aa5be3e014178236f3ab573c69464c22e280d0 Parents: bb2264d Author: Claus IbsenAuthored: Mon Jan 16 13:24:27 2017 +0100 Committer: Claus Ibsen Committed: Mon Jan 16 13:25:14 2017 +0100 -- .../org/apache/camel/catalog/CamelCatalog.java | 10 + .../camel/catalog/DefaultCamelCatalog.java | 45 .../apache/camel/catalog/CamelCatalogTest.java | 25 +++ 3 files changed, 80 insertions(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/96aa5be3/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java index 4c2b9b9..bc77e41 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java @@ -283,6 +283,16 @@ public interface CamelCatalog { Map endpointProperties(String uri) throws URISyntaxException; /** + * Parses the endpoint uri and constructs a key/value properties of only the lenient properties (eg custom options) + * + * For example using the HTTP components to provide query parameters in the endpoint uri. + * + * @param uri the endpoint uri + * @return properties as key value pairs of each lenient properties + */ +Map endpointLenientProperties(String uri) throws URISyntaxException; + +/** * Validates the pattern whether its a valid time pattern. * * @param pattern the pattern such as 5000, 5s, 5sec, 4min, 4m30s, 1h, etc. http://git-wip-us.apache.org/repos/asf/camel/blob/96aa5be3/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java index 766a2a1..27d818b 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java @@ -39,6 +39,7 @@ import java.util.TreeSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; +import javax.print.attribute.URISyntax; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; @@ -1465,6 +1466,50 @@ public class DefaultCamelCatalog implements CamelCatalog { } @Override +public Map endpointLenientProperties(String uri) throws URISyntaxException { +// need to normalize uri first + +// parse the uri +URI u = normalizeUri(uri); +String scheme = u.getScheme(); + +String json = componentJSonSchema(scheme); +if (json == null) { +throw new IllegalArgumentException("Cannot find endpoint with scheme " + scheme); +} + +List
[1/2] camel git commit: camel-catalog - Make it possible to grab the lenient properties from an url.
Repository: camel Updated Branches: refs/heads/camel-2.18.x bb2264d8f -> 96aa5be3e refs/heads/master da0645994 -> de914aaea camel-catalog - Make it possible to grab the lenient properties from an url. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/de914aae Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/de914aae Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/de914aae Branch: refs/heads/master Commit: de914aaeaddcebf138d6b7b67089821b17b644d1 Parents: da06459 Author: Claus IbsenAuthored: Mon Jan 16 13:24:27 2017 +0100 Committer: Claus Ibsen Committed: Mon Jan 16 13:24:27 2017 +0100 -- .../org/apache/camel/catalog/CamelCatalog.java | 10 + .../camel/catalog/DefaultCamelCatalog.java | 45 .../apache/camel/catalog/CamelCatalogTest.java | 25 +++ 3 files changed, 80 insertions(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/de914aae/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java index a83b886..6c23016 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java @@ -307,6 +307,16 @@ public interface CamelCatalog { Map endpointProperties(String uri) throws URISyntaxException; /** + * Parses the endpoint uri and constructs a key/value properties of only the lenient properties (eg custom options) + * + * For example using the HTTP components to provide query parameters in the endpoint uri. + * + * @param uri the endpoint uri + * @return properties as key value pairs of each lenient properties + */ +Map endpointLenientProperties(String uri) throws URISyntaxException; + +/** * Validates the pattern whether its a valid time pattern. * * @param pattern the pattern such as 5000, 5s, 5sec, 4min, 4m30s, 1h, etc. http://git-wip-us.apache.org/repos/asf/camel/blob/de914aae/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java index 7efa230..8e763db 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java @@ -39,6 +39,7 @@ import java.util.TreeSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; +import javax.print.attribute.URISyntax; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; @@ -1609,6 +1610,50 @@ public class DefaultCamelCatalog implements CamelCatalog { } @Override +public Map endpointLenientProperties(String uri) throws URISyntaxException { +// need to normalize uri first + +// parse the uri +URI u = normalizeUri(uri); +String scheme = u.getScheme(); + +String json = componentJSonSchema(scheme); +if (json == null) { +throw new IllegalArgumentException("Cannot find endpoint with scheme " + scheme); +} + +List
[1/2] camel git commit: camel-catalog - improve endpoint validation around lenient vs non lenient components.
Repository: camel Updated Branches: refs/heads/camel-2.18.x a35771d0d -> bb2264d8f refs/heads/master d023026af -> da0645994 camel-catalog - improve endpoint validation around lenient vs non lenient components. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/da064599 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/da064599 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/da064599 Branch: refs/heads/master Commit: da06459945615b173118e0e97544d9c91d8cb3ee Parents: d023026 Author: Claus IbsenAuthored: Mon Jan 16 12:23:50 2017 +0100 Committer: Claus Ibsen Committed: Mon Jan 16 12:27:08 2017 +0100 -- .../camel/catalog/DefaultCamelCatalog.java | 29 +--- .../camel/catalog/EndpointValidationResult.java | 14 ++ .../apache/camel/catalog/CamelCatalogTest.java | 25 + 3 files changed, 58 insertions(+), 10 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/da064599/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java index 7c5ad30..7efa230 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java @@ -1142,9 +1142,13 @@ public class DefaultCamelCatalog implements CamelCatalog { } rows = JSonSchemaHelper.parseJsonSchema("component", json, false); -// only enable lenient properties if we should not ignore -lenientProperties = !ignoreLenientProperties && isComponentLenientProperties(rows); - +if (consumerOnly) { +// lenient properties is not support in consumer only mode +lenientProperties = false; +} else { +// only enable lenient properties if we should not ignore +lenientProperties = !ignoreLenientProperties && isComponentLenientProperties(rows); +} rows = JSonSchemaHelper.parseJsonSchema("properties", json, true); properties = endpointProperties(uri); } catch (URISyntaxException e) { @@ -1198,13 +1202,18 @@ public class DefaultCamelCatalog implements CamelCatalog { // only add as error if the component is not lenient properties, or not stub component // and the name is not a property placeholder for one or more values -// as if we are lenient then the option is a dynamic extra option which we cannot validate -if (!namePlaceholder && !lenientProperties && !"stub".equals(scheme)) { -result.addUnknown(name); -if (suggestionStrategy != null) { -String[] suggestions = suggestionStrategy.suggestEndpointOptions(getNames(rows), name); -if (suggestions != null) { -result.addUnknownSuggestions(name, suggestions); +if (!namePlaceholder && !"stub".equals(scheme)) { +if (lenientProperties) { +// as if we are lenient then the option is a dynamic extra option which we cannot validate +result.addLenient(name); +} else { +// its unknown +result.addUnknown(name); +if (suggestionStrategy != null) { +String[] suggestions = suggestionStrategy.suggestEndpointOptions(getNames(rows), name); +if (suggestions != null) { +result.addUnknownSuggestions(name, suggestions); +} } } } http://git-wip-us.apache.org/repos/asf/camel/blob/da064599/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java index fa2515e..11e2c5e 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java @@ -41,6 +41,7 @@ public class EndpointValidationResult implements Serializable {
[2/2] camel git commit: camel-catalog - improve endpoint validation around lenient vs non lenient components.
camel-catalog - improve endpoint validation around lenient vs non lenient components. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bb2264d8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bb2264d8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bb2264d8 Branch: refs/heads/camel-2.18.x Commit: bb2264d8f45143c80b05f9793bc3255c3323a84e Parents: a35771d Author: Claus IbsenAuthored: Mon Jan 16 12:23:50 2017 +0100 Committer: Claus Ibsen Committed: Mon Jan 16 12:27:49 2017 +0100 -- .../camel/catalog/DefaultCamelCatalog.java | 29 +--- .../camel/catalog/EndpointValidationResult.java | 14 ++ .../apache/camel/catalog/CamelCatalogTest.java | 25 + 3 files changed, 58 insertions(+), 10 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/bb2264d8/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java index b00bf73..766a2a1 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java @@ -998,9 +998,13 @@ public class DefaultCamelCatalog implements CamelCatalog { } rows = JSonSchemaHelper.parseJsonSchema("component", json, false); -// only enable lenient properties if we should not ignore -lenientProperties = !ignoreLenientProperties && isComponentLenientProperties(rows); - +if (consumerOnly) { +// lenient properties is not support in consumer only mode +lenientProperties = false; +} else { +// only enable lenient properties if we should not ignore +lenientProperties = !ignoreLenientProperties && isComponentLenientProperties(rows); +} rows = JSonSchemaHelper.parseJsonSchema("properties", json, true); properties = endpointProperties(uri); } catch (URISyntaxException e) { @@ -1054,13 +1058,18 @@ public class DefaultCamelCatalog implements CamelCatalog { // only add as error if the component is not lenient properties, or not stub component // and the name is not a property placeholder for one or more values -// as if we are lenient then the option is a dynamic extra option which we cannot validate -if (!namePlaceholder && !lenientProperties && !"stub".equals(scheme)) { -result.addUnknown(name); -if (suggestionStrategy != null) { -String[] suggestions = suggestionStrategy.suggestEndpointOptions(getNames(rows), name); -if (suggestions != null) { -result.addUnknownSuggestions(name, suggestions); +if (!namePlaceholder && !"stub".equals(scheme)) { +if (lenientProperties) { +// as if we are lenient then the option is a dynamic extra option which we cannot validate +result.addLenient(name); +} else { +// its unknown +result.addUnknown(name); +if (suggestionStrategy != null) { +String[] suggestions = suggestionStrategy.suggestEndpointOptions(getNames(rows), name); +if (suggestions != null) { +result.addUnknownSuggestions(name, suggestions); +} } } } http://git-wip-us.apache.org/repos/asf/camel/blob/bb2264d8/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java -- diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java index fa2515e..11e2c5e 100644 --- a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java +++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java @@ -41,6 +41,7 @@ public class EndpointValidationResult implements Serializable { // options private Set unknown; private Map unknownSuggestions; +private Set lenient;
camel git commit: Upgrade Californium to version 1.0.5
Repository: camel Updated Branches: refs/heads/master 0ced2f8a7 -> d023026af Upgrade Californium to version 1.0.5 Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d023026a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d023026a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d023026a Branch: refs/heads/master Commit: d023026afdec1930d197df0375b0647b68ad7755 Parents: 0ced2f8 Author: Andrea CosentinoAuthored: Mon Jan 16 11:30:39 2017 +0100 Committer: Andrea Cosentino Committed: Mon Jan 16 11:31:04 2017 +0100 -- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/d023026a/parent/pom.xml -- diff --git a/parent/pom.xml b/parent/pom.xml index 38ff4e3..bf308c6 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -89,7 +89,7 @@ 1.10 0.9.5.2 2.3.5 -1.0.4 +1.0.5 camel-test-spring 3.1.3 18.0
camel git commit: Update etcd4j to version 2.13.0
Repository: camel Updated Branches: refs/heads/master e5c45cc20 -> 0ced2f8a7 Update etcd4j to version 2.13.0 Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0ced2f8a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0ced2f8a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0ced2f8a Branch: refs/heads/master Commit: 0ced2f8a7bf749ccb71a6f9cb5c353ed828796db Parents: e5c45cc Author: lburgazzoliAuthored: Mon Jan 16 11:18:52 2017 +0100 Committer: lburgazzoli Committed: Mon Jan 16 11:18:52 2017 +0100 -- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/0ced2f8a/parent/pom.xml -- diff --git a/parent/pom.xml b/parent/pom.xml index e59184d..38ff4e3 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -180,7 +180,7 @@ 1.0.1 1.50.1 -2.12.0 +2.13.0 1.5.0 1.0.6_1 2.4.8
camel git commit: CAMEL-10709: camel-etcd: etcd stats endpoint fails because of a class cast exception
Repository: camel Updated Branches: refs/heads/camel-2.18.x 04549207f -> a35771d0d CAMEL-10709: camel-etcd: etcd stats endpoint fails because of a class cast exception (cherry picked from commit e5c45cc209d6103c92a241185bf389f4886d2c2a) Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a35771d0 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a35771d0 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a35771d0 Branch: refs/heads/camel-2.18.x Commit: a35771d0de891e7ecee5e38f2750c34913252c3f Parents: 0454920 Author: lburgazzoliAuthored: Mon Jan 16 09:59:16 2017 +0100 Committer: lburgazzoli Committed: Mon Jan 16 10:35:35 2017 +0100 -- .../component/etcd/AbstractEtcdConsumer.java| 2 +- .../component/etcd/AbstractEtcdEndpoint.java| 6 +++- .../etcd/AbstractEtcdPollingConsumer.java | 24 ++-- .../etcd/AbstractEtcdPollingEndpoint.java | 6 +++- .../component/etcd/AbstractEtcdProducer.java| 2 +- .../camel/component/etcd/EtcdEndpoint.java | 29 .../camel/component/etcd/EtcdStatsConsumer.java | 9 +++--- .../camel/component/etcd/EtcdStatsEndpoint.java | 2 +- 8 files changed, 48 insertions(+), 32 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/a35771d0/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java index 84533d8..1a7fdde 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java @@ -50,7 +50,7 @@ public abstract class AbstractEtcdConsumer extends DefaultConsumer { protected EtcdClient getClient() throws Exception { if (client == null) { -client = ((AbstractEtcdEndpoint)getEndpoint()).createClient(); +client = ((EtcdEndpoint)getEndpoint()).createClient(); } return client; http://git-wip-us.apache.org/repos/asf/camel/blob/a35771d0/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java index 5eb095e..beb72ca 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java @@ -27,7 +27,7 @@ import org.apache.camel.spi.UriPath; * The camel etcd component allows you to work with https://coreos.com/etcd;>Etcd, a distributed, A distributed, reliable key-value store. */ @UriEndpoint(scheme = "etcd", title = "etcd", syntax = "etcd:namespace/path", consumerClass = AbstractEtcdConsumer.class, label = "etcd") -public abstract class AbstractEtcdEndpoint extends DefaultEndpoint { +public abstract class AbstractEtcdEndpoint extends DefaultEndpoint implements EtcdEndpoint { @UriPath(description = "The API namespace to use", enums = "keys,stats,watch") @Metadata(required = "true") @@ -51,18 +51,22 @@ public abstract class AbstractEtcdEndpoint extends DefaultEndpoint { return true; } +@Override public EtcdConfiguration getConfiguration() { return this.configuration; } +@Override public EtcdNamespace getNamespace() { return this.namespace; } +@Override public String getPath() { return this.path; } +@Override public EtcdClient createClient() throws Exception { return configuration.createClient(); } http://git-wip-us.apache.org/repos/asf/camel/blob/a35771d0/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java index b069c63..bce2354 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java +++
camel git commit: CAMEL-10709: camel-etcd: etcd stats endpoint fails because of a class cast exception
Repository: camel Updated Branches: refs/heads/master 5dc888d8f -> e5c45cc20 CAMEL-10709: camel-etcd: etcd stats endpoint fails because of a class cast exception Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e5c45cc2 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e5c45cc2 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e5c45cc2 Branch: refs/heads/master Commit: e5c45cc209d6103c92a241185bf389f4886d2c2a Parents: 5dc888d Author: lburgazzoliAuthored: Mon Jan 16 09:59:16 2017 +0100 Committer: lburgazzoli Committed: Mon Jan 16 10:33:38 2017 +0100 -- .../component/etcd/AbstractEtcdConsumer.java| 2 +- .../component/etcd/AbstractEtcdEndpoint.java| 6 +++- .../etcd/AbstractEtcdPollingConsumer.java | 24 ++-- .../etcd/AbstractEtcdPollingEndpoint.java | 6 +++- .../component/etcd/AbstractEtcdProducer.java| 2 +- .../camel/component/etcd/EtcdEndpoint.java | 29 .../camel/component/etcd/EtcdStatsConsumer.java | 9 +++--- .../camel/component/etcd/EtcdStatsEndpoint.java | 2 +- 8 files changed, 48 insertions(+), 32 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/e5c45cc2/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java index 84533d8..1a7fdde 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdConsumer.java @@ -50,7 +50,7 @@ public abstract class AbstractEtcdConsumer extends DefaultConsumer { protected EtcdClient getClient() throws Exception { if (client == null) { -client = ((AbstractEtcdEndpoint)getEndpoint()).createClient(); +client = ((EtcdEndpoint)getEndpoint()).createClient(); } return client; http://git-wip-us.apache.org/repos/asf/camel/blob/e5c45cc2/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java index 5eb095e..beb72ca 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java @@ -27,7 +27,7 @@ import org.apache.camel.spi.UriPath; * The camel etcd component allows you to work with https://coreos.com/etcd;>Etcd, a distributed, A distributed, reliable key-value store. */ @UriEndpoint(scheme = "etcd", title = "etcd", syntax = "etcd:namespace/path", consumerClass = AbstractEtcdConsumer.class, label = "etcd") -public abstract class AbstractEtcdEndpoint extends DefaultEndpoint { +public abstract class AbstractEtcdEndpoint extends DefaultEndpoint implements EtcdEndpoint { @UriPath(description = "The API namespace to use", enums = "keys,stats,watch") @Metadata(required = "true") @@ -51,18 +51,22 @@ public abstract class AbstractEtcdEndpoint extends DefaultEndpoint { return true; } +@Override public EtcdConfiguration getConfiguration() { return this.configuration; } +@Override public EtcdNamespace getNamespace() { return this.namespace; } +@Override public String getPath() { return this.path; } +@Override public EtcdClient createClient() throws Exception { return configuration.createClient(); } http://git-wip-us.apache.org/repos/asf/camel/blob/e5c45cc2/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java -- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java index b069c63..bce2354 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdPollingConsumer.java @@ -24,18 +24,10 @@ import
camel git commit: Upgrade Async Http client to version 2.0.26
Repository: camel Updated Branches: refs/heads/master 698b65710 -> 5dc888d8f Upgrade Async Http client to version 2.0.26 Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5dc888d8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5dc888d8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5dc888d8 Branch: refs/heads/master Commit: 5dc888d8fd2328003d697f7a0a6765c44307 Parents: 698b657 Author: Andrea CosentinoAuthored: Mon Jan 16 10:06:45 2017 +0100 Committer: Andrea Cosentino Committed: Mon Jan 16 10:07:06 2017 +0100 -- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/5dc888d8/parent/pom.xml -- diff --git a/parent/pom.xml b/parent/pom.xml index 85a9849..e59184d 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -37,7 +37,7 @@ 5.14.3 1.0.2.v20150114 -2.0.25 +2.0.26 1.7.0_6 3.5.2_1 3.5.2_1