http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java deleted file mode 100644 index abfc98b..0000000 --- a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java +++ /dev/null @@ -1,120 +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.vm.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.disruptor.DisruptorProducerType; -import org.apache.camel.component.disruptor.DisruptorWaitStrategy; - -/** - * The disruptor component provides asynchronous SEDA behavior using LMAX - * Disruptor. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.disruptor-vm") -public class DisruptorVmComponentConfiguration { - - /** - * To configure the default number of concurrent consumers - */ - private int defaultConcurrentConsumers; - /** - * To configure the default value for multiple consumers - */ - private boolean defaultMultipleConsumers; - /** - * To configure the default value for DisruptorProducerType The default - * value is Multi. - */ - private DisruptorProducerType defaultProducerType; - /** - * To configure the default value for DisruptorWaitStrategy The default - * value is Blocking. - */ - private DisruptorWaitStrategy defaultWaitStrategy; - /** - * To configure the default value for block when full The default value is - * true. - */ - private boolean defaultBlockWhenFull; - /** - * To configure the ring buffer size - */ - @Deprecated - private int queueSize; - /** - * To configure the ring buffer size - */ - private int bufferSize; - - public int getDefaultConcurrentConsumers() { - return defaultConcurrentConsumers; - } - - public void setDefaultConcurrentConsumers(int defaultConcurrentConsumers) { - this.defaultConcurrentConsumers = defaultConcurrentConsumers; - } - - public boolean isDefaultMultipleConsumers() { - return defaultMultipleConsumers; - } - - public void setDefaultMultipleConsumers(boolean defaultMultipleConsumers) { - this.defaultMultipleConsumers = defaultMultipleConsumers; - } - - public DisruptorProducerType getDefaultProducerType() { - return defaultProducerType; - } - - public void setDefaultProducerType(DisruptorProducerType defaultProducerType) { - this.defaultProducerType = defaultProducerType; - } - - public DisruptorWaitStrategy getDefaultWaitStrategy() { - return defaultWaitStrategy; - } - - public void setDefaultWaitStrategy(DisruptorWaitStrategy defaultWaitStrategy) { - this.defaultWaitStrategy = defaultWaitStrategy; - } - - public boolean isDefaultBlockWhenFull() { - return defaultBlockWhenFull; - } - - public void setDefaultBlockWhenFull(boolean defaultBlockWhenFull) { - this.defaultBlockWhenFull = defaultBlockWhenFull; - } - - public int getQueueSize() { - return queueSize; - } - - public void setQueueSize(int queueSize) { - this.queueSize = queueSize; - } - - public int getBufferSize() { - return bufferSize; - } - - public void setBufferSize(int bufferSize) { - this.bufferSize = bufferSize; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-disruptor/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-disruptor/src/main/resources/META-INF/spring.factories b/components/camel-disruptor/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 6797e8a..0000000 --- a/components/camel-disruptor/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.disruptor.vm.springboot.DisruptorVmComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentAutoConfiguration.java b/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentAutoConfiguration.java deleted file mode 100644 index e1b4a6b..0000000 --- a/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.dns.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.dns.DnsComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(DnsComponentConfiguration.class) -public class DnsComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DnsComponent.class) - public DnsComponent configureComponent(CamelContext camelContext, - DnsComponentConfiguration configuration) throws Exception { - DnsComponent component = new DnsComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentConfiguration.java b/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentConfiguration.java deleted file mode 100644 index 045e8d3..0000000 --- a/components/camel-dns/src/main/java/org/apache/camel/component/dns/springboot/DnsComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.dns.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * To lookup domain information and run DNS queries using DNSJava. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.dns") -public class DnsComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dns/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-dns/src/main/resources/META-INF/spring.factories b/components/camel-dns/src/main/resources/META-INF/spring.factories deleted file mode 100644 index fef7327..0000000 --- a/components/camel-dns/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.dns.springboot.DnsComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentAutoConfiguration.java b/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentAutoConfiguration.java deleted file mode 100644 index 83bba80..0000000 --- a/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.docker.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.docker.DockerComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(DockerComponentConfiguration.class) -public class DockerComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DockerComponent.class) - public DockerComponent configureComponent(CamelContext camelContext, - DockerComponentConfiguration configuration) throws Exception { - DockerComponent component = new DockerComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentConfiguration.java b/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentConfiguration.java deleted file mode 100644 index 36608a1..0000000 --- a/components/camel-docker/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.docker.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.docker.DockerConfiguration; - -/** - * The docker component is used for managing Docker containers. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.docker") -public class DockerComponentConfiguration { - - /** - * To use the shared docker configuration - */ - private DockerConfiguration configuration; - - public DockerConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(DockerConfiguration configuration) { - this.configuration = configuration; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-docker/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-docker/src/main/resources/META-INF/spring.factories b/components/camel-docker/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 04d76c0..0000000 --- a/components/camel-docker/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.docker.springboot.DockerComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentAutoConfiguration.java b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentAutoConfiguration.java deleted file mode 100644 index d3279f9..0000000 --- a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.dozer.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.dozer.DozerComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(DozerComponentConfiguration.class) -public class DozerComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DozerComponent.class) - public DozerComponent configureComponent(CamelContext camelContext, - DozerComponentConfiguration configuration) throws Exception { - DozerComponent component = new DozerComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentConfiguration.java b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentConfiguration.java deleted file mode 100644 index 77f79ba..0000000 --- a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/springboot/DozerComponentConfiguration.java +++ /dev/null @@ -1,29 +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.dozer.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The dozer component provides the ability to map between Java beans using the - * Dozer mapping library. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.dozer") -public class DozerComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dozer/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-dozer/src/main/resources/META-INF/spring.factories b/components/camel-dozer/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a07abe0..0000000 --- a/components/camel-dozer/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.dozer.springboot.DozerComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentAutoConfiguration.java b/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentAutoConfiguration.java deleted file mode 100644 index 4f87b23..0000000 --- a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.dropbox.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.dropbox.DropboxComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(DropboxComponentConfiguration.class) -public class DropboxComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(DropboxComponent.class) - public DropboxComponent configureComponent(CamelContext camelContext, - DropboxComponentConfiguration configuration) throws Exception { - DropboxComponent component = new DropboxComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentConfiguration.java b/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentConfiguration.java deleted file mode 100644 index df5d944..0000000 --- a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/springboot/DropboxComponentConfiguration.java +++ /dev/null @@ -1,29 +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.dropbox.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For uploading downloading and managing files folders groups collaborations - * etc on dropbox DOT com. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.dropbox") -public class DropboxComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-dropbox/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-dropbox/src/main/resources/META-INF/spring.factories b/components/camel-dropbox/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d962448..0000000 --- a/components/camel-dropbox/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.dropbox.springboot.DropboxComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentAutoConfiguration.java b/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentAutoConfiguration.java deleted file mode 100644 index 675dd6a..0000000 --- a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.ehcache.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.ehcache.EhcacheComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(EhcacheComponentConfiguration.class) -public class EhcacheComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(EhcacheComponent.class) - public EhcacheComponent configureComponent(CamelContext camelContext, - EhcacheComponentConfiguration configuration) throws Exception { - EhcacheComponent component = new EhcacheComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentConfiguration.java b/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentConfiguration.java deleted file mode 100644 index c5b7950..0000000 --- a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/springboot/EhcacheComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.ehcache.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Ehcache support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.ehcache") -public class EhcacheComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ehcache/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-ehcache/src/main/resources/META-INF/spring.factories b/components/camel-ehcache/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5087049..0000000 --- a/components/camel-ehcache/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.ehcache.springboot.EhcacheComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentAutoConfiguration.java b/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentAutoConfiguration.java deleted file mode 100644 index f914731..0000000 --- a/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.ejb.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.ejb.EjbComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(EjbComponentConfiguration.class) -public class EjbComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(EjbComponent.class) - public EjbComponent configureComponent(CamelContext camelContext, - EjbComponentConfiguration configuration) throws Exception { - EjbComponent component = new EjbComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentConfiguration.java b/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentConfiguration.java deleted file mode 100644 index 09f5f4f..0000000 --- a/components/camel-ejb/src/main/java/org/apache/camel/component/ejb/springboot/EjbComponentConfiguration.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.ejb.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import javax.naming.Context; -import java.util.Properties; - -/** - * The ejb component is for invoking EJB Java beans from Camel. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.ejb") -public class EjbComponentConfiguration { - - /** - * The Context to use for looking up the EJBs - */ - private Context context; - /** - * Properties for creating javax.naming.Context if a context has not been - * configured. - */ - private Properties properties; - - public Context getContext() { - return context; - } - - public void setContext(Context context) { - this.context = context; - } - - public Properties getProperties() { - return properties; - } - - public void setProperties(Properties properties) { - this.properties = properties; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-ejb/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-ejb/src/main/resources/META-INF/spring.factories b/components/camel-ejb/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 807a34b..0000000 --- a/components/camel-ejb/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.ejb.springboot.EjbComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentAutoConfiguration.java b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentAutoConfiguration.java deleted file mode 100644 index 0f92ef2..0000000 --- a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.elasticsearch.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.elasticsearch.ElasticsearchComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(ElasticsearchComponentConfiguration.class) -public class ElasticsearchComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ElasticsearchComponent.class) - public ElasticsearchComponent configureComponent(CamelContext camelContext, - ElasticsearchComponentConfiguration configuration) throws Exception { - ElasticsearchComponent component = new ElasticsearchComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentConfiguration.java b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentConfiguration.java deleted file mode 100644 index 8898f30..0000000 --- a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/springboot/ElasticsearchComponentConfiguration.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.elasticsearch.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.elasticsearch.client.Client; - -/** - * The elasticsearch component is used for interfacing with ElasticSearch - * server. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.elasticsearch") -public class ElasticsearchComponentConfiguration { - - /** - * To use an existing configured Elasticsearch client instead of creating a - * client per endpoint. - */ - private Client client; - - public Client getClient() { - return client; - } - - public void setClient(Client client) { - this.client = client; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elasticsearch/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-elasticsearch/src/main/resources/META-INF/spring.factories b/components/camel-elasticsearch/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a952c37..0000000 --- a/components/camel-elasticsearch/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.elasticsearch.springboot.ElasticsearchComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentAutoConfiguration.java b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentAutoConfiguration.java deleted file mode 100644 index 37a4d46..0000000 --- a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.elsql.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.elsql.ElsqlComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(ElsqlComponentConfiguration.class) -public class ElsqlComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ElsqlComponent.class) - public ElsqlComponent configureComponent(CamelContext camelContext, - ElsqlComponentConfiguration configuration) throws Exception { - ElsqlComponent component = new ElsqlComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentConfiguration.java b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentConfiguration.java deleted file mode 100644 index 51c8f9b..0000000 --- a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/springboot/ElsqlComponentConfiguration.java +++ /dev/null @@ -1,86 +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.elsql.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.elsql.ElSqlDatabaseVendor; -import javax.sql.DataSource; -import com.opengamma.elsql.ElSqlConfig; - -/** - * The elsql component is an extension to the existing SQL Component that uses - * ElSql to define the SQL queries. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.elsql") -public class ElsqlComponentConfiguration { - - /** - * To use a vendor specific com.opengamma.elsql.ElSqlConfig - */ - private ElSqlDatabaseVendor databaseVendor; - /** - * Sets the DataSource to use to communicate with the database. - */ - private DataSource dataSource; - /** - * To use a specific configured ElSqlConfig. It may be better to use the - * databaseVendor option instead. - */ - private ElSqlConfig elSqlConfig; - /** - * The resource file which contains the elsql SQL statements to use. You can - * specify multiple resources separated by comma. The resources are loaded - * on the classpath by default you can prefix with file: to load from file - * system. Notice you can set this option on the component and then you do - * not have to configure this on the endpoint. - */ - private String resourceUri; - - public ElSqlDatabaseVendor getDatabaseVendor() { - return databaseVendor; - } - - public void setDatabaseVendor(ElSqlDatabaseVendor databaseVendor) { - this.databaseVendor = databaseVendor; - } - - public DataSource getDataSource() { - return dataSource; - } - - public void setDataSource(DataSource dataSource) { - this.dataSource = dataSource; - } - - public ElSqlConfig getElSqlConfig() { - return elSqlConfig; - } - - public void setElSqlConfig(ElSqlConfig elSqlConfig) { - this.elSqlConfig = elSqlConfig; - } - - public String getResourceUri() { - return resourceUri; - } - - public void setResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-elsql/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-elsql/src/main/resources/META-INF/spring.factories b/components/camel-elsql/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3b79893..0000000 --- a/components/camel-elsql/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.elsql.springboot.ElsqlComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentAutoConfiguration.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentAutoConfiguration.java deleted file mode 100644 index 713b730..0000000 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.etcd.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.etcd.EtcdComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(EtcdComponentConfiguration.class) -public class EtcdComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(EtcdComponent.class) - public EtcdComponent configureComponent(CamelContext camelContext, - EtcdComponentConfiguration configuration) throws Exception { - EtcdComponent component = new EtcdComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentConfiguration.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentConfiguration.java deleted file mode 100644 index 45b74a5..0000000 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/springboot/EtcdComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.etcd.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Represents a etcd endpoint. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.etcd") -public class EtcdComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-etcd/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-etcd/src/main/resources/META-INF/spring.factories b/components/camel-etcd/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d3e9b9a..0000000 --- a/components/camel-etcd/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.etcd.springboot.EtcdComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentAutoConfiguration.java b/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentAutoConfiguration.java deleted file mode 100644 index dc6cd48..0000000 --- a/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.eventadmin.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.eventadmin.EventAdminComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(EventAdminComponentConfiguration.class) -public class EventAdminComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(EventAdminComponent.class) - public EventAdminComponent configureComponent(CamelContext camelContext, - EventAdminComponentConfiguration configuration) throws Exception { - EventAdminComponent component = new EventAdminComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentConfiguration.java b/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentConfiguration.java deleted file mode 100644 index 83d1cf7..0000000 --- a/components/camel-eventadmin/src/main/java/org/apache/camel/component/eventadmin/springboot/EventAdminComponentConfiguration.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.eventadmin.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.osgi.framework.BundleContext; - -/** - * The eventadmin component can be used in an OSGi environment to receive OSGi - * EventAdmin events and process them. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.eventadmin") -public class EventAdminComponentConfiguration { - - /** - * The OSGi BundleContext is automatic injected by Camel - */ - private BundleContext bundleContext; - - public BundleContext getBundleContext() { - return bundleContext; - } - - public void setBundleContext(BundleContext bundleContext) { - this.bundleContext = bundleContext; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-eventadmin/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-eventadmin/src/main/resources/META-INF/spring.factories b/components/camel-eventadmin/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d6c2057..0000000 --- a/components/camel-eventadmin/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.eventadmin.springboot.EventAdminComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentAutoConfiguration.java b/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentAutoConfiguration.java deleted file mode 100644 index 5fb352e..0000000 --- a/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.exec.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.exec.ExecComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(ExecComponentConfiguration.class) -public class ExecComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ExecComponent.class) - public ExecComponent configureComponent(CamelContext camelContext, - ExecComponentConfiguration configuration) throws Exception { - ExecComponent component = new ExecComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentConfiguration.java b/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentConfiguration.java deleted file mode 100644 index c87deef..0000000 --- a/components/camel-exec/src/main/java/org/apache/camel/component/exec/springboot/ExecComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.exec.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The exec component can be used to execute OS system commands. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.exec") -public class ExecComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-exec/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-exec/src/main/resources/META-INF/spring.factories b/components/camel-exec/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 1aa873a..0000000 --- a/components/camel-exec/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.exec.springboot.ExecComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentAutoConfiguration.java b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentAutoConfiguration.java deleted file mode 100644 index 6f38580..0000000 --- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.facebook.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.facebook.FacebookComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(FacebookComponentConfiguration.class) -public class FacebookComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(FacebookComponent.class) - public FacebookComponent configureComponent(CamelContext camelContext, - FacebookComponentConfiguration configuration) throws Exception { - FacebookComponent component = new FacebookComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentConfiguration.java b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentConfiguration.java deleted file mode 100644 index 4a77f62..0000000 --- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/springboot/FacebookComponentConfiguration.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.facebook.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.facebook.config.FacebookConfiguration; - -/** - * The Facebook component provides access to all of the Facebook APIs accessible - * using Facebook4J. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.facebook") -public class FacebookComponentConfiguration { - - /** - * To use the shared configuration - */ - private FacebookConfiguration configuration; - - public FacebookConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(FacebookConfiguration configuration) { - this.configuration = configuration; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-facebook/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-facebook/src/main/resources/META-INF/spring.factories b/components/camel-facebook/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 49cf4f2..0000000 --- a/components/camel-facebook/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.facebook.springboot.FacebookComponentAutoConfiguration