This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 629ea30a851b20ad8180481b6c25531616f8a923 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Feb 15 16:45:27 2021 +0100 CAMEL-16115 - Remove Camel-AWS-* components - AWS-SDB --- .../component/ComponentsBuilderFactory.java | 14 - .../dsl/AwsSdbComponentBuilderFactory.java | 119 ------ .../src/generated/resources/metadata.json | 23 -- .../builder/endpoint/EndpointBuilderFactory.java | 1 - .../camel/builder/endpoint/EndpointBuilders.java | 1 - .../builder/endpoint/StaticEndpointBuilders.java | 45 --- .../endpoint/dsl/SdbEndpointBuilderFactory.java | 409 --------------------- 7 files changed, 612 deletions(-) diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 583bec9..0c117cc 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -502,20 +502,6 @@ public interface ComponentsBuilderFactory { return org.apache.camel.builder.component.dsl.AwsS3ComponentBuilderFactory.awsS3(); } /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * @return the dsl builder - */ - @Deprecated - static org.apache.camel.builder.component.dsl.AwsSdbComponentBuilderFactory.AwsSdbComponentBuilder awsSdb() { - return org.apache.camel.builder.component.dsl.AwsSdbComponentBuilderFactory.awsSdb(); - } - /** * AWS Simple Email Service (SES) (camel-aws-ses) * Send e-mails through AWS SES service. * diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsSdbComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsSdbComponentBuilderFactory.java deleted file mode 100644 index e3b36c8..0000000 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsSdbComponentBuilderFactory.java +++ /dev/null @@ -1,119 +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.builder.component.dsl; - -import javax.annotation.Generated; -import org.apache.camel.Component; -import org.apache.camel.builder.component.AbstractComponentBuilder; -import org.apache.camel.builder.component.ComponentBuilder; -import org.apache.camel.component.aws.sdb.SdbComponent; - -/** - * Store and Retrieve data from/to AWS SDB service. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Generated("org.apache.camel.maven.packaging.ComponentDslMojo") -public interface AwsSdbComponentBuilderFactory { - - /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * @return the dsl builder - */ - @Deprecated - static AwsSdbComponentBuilder awsSdb() { - return new AwsSdbComponentBuilderImpl(); - } - - /** - * Builder for the AWS SimpleDB component. - */ - interface AwsSdbComponentBuilder extends ComponentBuilder<SdbComponent> { - /** - * Whether the producer should be started lazy (on the first message). - * By starting lazy you can use this to allow CamelContext and routes to - * startup in situations where a producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default AwsSdbComponentBuilder lazyStartProducer( - boolean lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * Whether autowiring is enabled. This is used for automatic autowiring - * options (the option must be marked as autowired) by looking up in the - * registry to find if there is a single instance of matching type, - * which then gets configured on the component. This can be used for - * automatic configuring JDBC data sources, JMS connection factories, - * AWS Clients, etc. - * - * The option is a: <code>boolean</code> type. - * - * Default: true - * Group: advanced - * - * @param autowiredEnabled the value to set - * @return the dsl builder - */ - default AwsSdbComponentBuilder autowiredEnabled(boolean autowiredEnabled) { - doSetProperty("autowiredEnabled", autowiredEnabled); - return this; - } - } - - class AwsSdbComponentBuilderImpl - extends - AbstractComponentBuilder<SdbComponent> - implements - AwsSdbComponentBuilder { - @Override - protected SdbComponent buildConcreteComponent() { - return new SdbComponent(); - } - @Override - protected boolean setPropertyOnComponent( - Component component, - String name, - Object value) { - switch (name) { - case "lazyStartProducer": ((SdbComponent) component).setLazyStartProducer((boolean) value); return true; - case "autowiredEnabled": ((SdbComponent) component).setAutowiredEnabled((boolean) value); return true; - default: return false; - } - } - } -} \ No newline at end of file diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json index 637e679..75d9438 100644 --- a/core/camel-componentdsl/src/generated/resources/metadata.json +++ b/core/camel-componentdsl/src/generated/resources/metadata.json @@ -1228,29 +1228,6 @@ "producerOnly": false, "lenientProperties": false }, - "AwsSdbComponentBuilderFactory": { - "kind": "component", - "name": "aws-sdb", - "title": "AWS SimpleDB", - "description": "Store and Retrieve data from\/to AWS SDB service.", - "deprecated": true, - "deprecatedSince": "3.8.0", - "firstVersion": "2.9.0", - "label": "cloud,database,nosql", - "javaType": "org.apache.camel.component.aws.sdb.SdbComponent", - "supportLevel": "Stable", - "groupId": "org.apache.camel", - "artifactId": "camel-aws-sdb", - "version": "3.9.0-SNAPSHOT", - "scheme": "aws-sdb", - "extendsScheme": "", - "syntax": "aws-sdb:domainName", - "async": false, - "api": false, - "consumerOnly": false, - "producerOnly": true, - "lenientProperties": false - }, "AwsSesComponentBuilderFactory": { "kind": "component", "name": "aws-ses", diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java index a632277..f8c8bf4 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java @@ -302,7 +302,6 @@ public interface EndpointBuilderFactory org.apache.camel.builder.endpoint.dsl.SchedulerEndpointBuilderFactory.SchedulerBuilders, org.apache.camel.builder.endpoint.dsl.SchematronEndpointBuilderFactory.SchematronBuilders, org.apache.camel.builder.endpoint.dsl.ScpEndpointBuilderFactory.ScpBuilders, - org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory.SdbBuilders, org.apache.camel.builder.endpoint.dsl.SedaEndpointBuilderFactory.SedaBuilders, org.apache.camel.builder.endpoint.dsl.ServerEndpointBuilderFactory.ServerBuilders, org.apache.camel.builder.endpoint.dsl.ServiceEndpointBuilderFactory.ServiceBuilders, diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java index 43354bb..61d64a5 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java @@ -299,7 +299,6 @@ public interface EndpointBuilders org.apache.camel.builder.endpoint.dsl.SchedulerEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.SchematronEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.ScpEndpointBuilderFactory, - org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.SedaEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.ServerEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.ServiceEndpointBuilderFactory, diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 299b72f..686c349 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -2462,51 +2462,6 @@ public class StaticEndpointBuilders { return org.apache.camel.builder.endpoint.dsl.S3EndpointBuilderFactory.endpointBuilder(componentName, path); } /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * Syntax: <code>aws-sdb:domainName</code> - * - * Path parameter: domainName (required) - * The name of the domain currently worked with. - * - * @param path domainName - * @return the dsl builder - */ - @Deprecated - public static org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory.SdbEndpointBuilder awsSdb( - String path) { - return org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory.endpointBuilder("aws-sdb", path); - } - /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * Syntax: <code>aws-sdb:domainName</code> - * - * Path parameter: domainName (required) - * The name of the domain currently worked with. - * - * @param componentName to use a custom component name for the endpoint - * instead of the default name - * @param path domainName - * @return the dsl builder - */ - @Deprecated - public static org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory.SdbEndpointBuilder awsSdb( - String componentName, - String path) { - return org.apache.camel.builder.endpoint.dsl.SdbEndpointBuilderFactory.endpointBuilder(componentName, path); - } - /** * AWS Simple Email Service (SES) (camel-aws-ses) * Send e-mails through AWS SES service. * diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java deleted file mode 100644 index d2f756c..0000000 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java +++ /dev/null @@ -1,409 +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.builder.endpoint.dsl; - -import javax.annotation.Generated; -import org.apache.camel.builder.EndpointConsumerBuilder; -import org.apache.camel.builder.EndpointProducerBuilder; -import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; - -/** - * Store and Retrieve data from/to AWS SDB service. - * - * Generated by camel build tools - do NOT edit this file! - */ -@Generated("org.apache.camel.maven.packaging.EndpointDslMojo") -public interface SdbEndpointBuilderFactory { - - - /** - * Builder for endpoint for the AWS SimpleDB component. - */ - public interface SdbEndpointBuilder extends EndpointProducerBuilder { - /** - * Amazon AWS Access Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param accessKey the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder accessKey(String accessKey) { - doSetProperty("accessKey", accessKey); - return this; - } - /** - * To use the AmazonSimpleDB as the client. - * - * The option is a: - * <code>com.amazonaws.services.simpledb.AmazonSimpleDB</code> type. - * - * Group: producer - * - * @param amazonSDBClient the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder amazonSDBClient(Object amazonSDBClient) { - doSetProperty("amazonSDBClient", amazonSDBClient); - return this; - } - /** - * To use the AmazonSimpleDB as the client. - * - * The option will be converted to a - * <code>com.amazonaws.services.simpledb.AmazonSimpleDB</code> type. - * - * Group: producer - * - * @param amazonSDBClient the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder amazonSDBClient(String amazonSDBClient) { - doSetProperty("amazonSDBClient", amazonSDBClient); - return this; - } - /** - * Determines whether or not strong consistency should be enforced when - * data is read. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param consistentRead the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder consistentRead(boolean consistentRead) { - doSetProperty("consistentRead", consistentRead); - return this; - } - /** - * Determines whether or not strong consistency should be enforced when - * data is read. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: false - * Group: producer - * - * @param consistentRead the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder consistentRead(String consistentRead) { - doSetProperty("consistentRead", consistentRead); - return this; - } - /** - * Whether the producer should be started lazy (on the first message). - * By starting lazy you can use this to allow CamelContext and routes to - * startup in situations where a producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder lazyStartProducer(boolean lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * Whether the producer should be started lazy (on the first message). - * By starting lazy you can use this to allow CamelContext and routes to - * startup in situations where a producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder lazyStartProducer(String lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * The maximum number of domain names you want returned. The range is 1 - * to 100. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param maxNumberOfDomains the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder maxNumberOfDomains(Integer maxNumberOfDomains) { - doSetProperty("maxNumberOfDomains", maxNumberOfDomains); - return this; - } - /** - * The maximum number of domain names you want returned. The range is 1 - * to 100. - * - * The option will be converted to a - * <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param maxNumberOfDomains the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder maxNumberOfDomains(String maxNumberOfDomains) { - doSetProperty("maxNumberOfDomains", maxNumberOfDomains); - return this; - } - /** - * Operation to perform. - * - * The option is a: - * <code>org.apache.camel.component.aws.sdb.SdbOperations</code> type. - * - * Default: PutAttributes - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder operation(SdbOperations operation) { - doSetProperty("operation", operation); - return this; - } - /** - * Operation to perform. - * - * The option will be converted to a - * <code>org.apache.camel.component.aws.sdb.SdbOperations</code> type. - * - * Default: PutAttributes - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder operation(String operation) { - doSetProperty("operation", operation); - return this; - } - /** - * To define a proxy host when instantiating the SDB client. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param proxyHost the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder proxyHost(String proxyHost) { - doSetProperty("proxyHost", proxyHost); - return this; - } - /** - * To define a proxy port when instantiating the SDB client. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param proxyPort the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder proxyPort(Integer proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * To define a proxy port when instantiating the SDB client. - * - * The option will be converted to a - * <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param proxyPort the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder proxyPort(String proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * To define a proxy protocol when instantiating the SDB client. - * - * The option is a: <code>com.amazonaws.Protocol</code> - * type. - * - * Default: HTTPS - * Group: producer - * - * @param proxyProtocol the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder proxyProtocol(Protocol proxyProtocol) { - doSetProperty("proxyProtocol", proxyProtocol); - return this; - } - /** - * To define a proxy protocol when instantiating the SDB client. - * - * The option will be converted to a - * <code>com.amazonaws.Protocol</code> type. - * - * Default: HTTPS - * Group: producer - * - * @param proxyProtocol the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder proxyProtocol(String proxyProtocol) { - doSetProperty("proxyProtocol", proxyProtocol); - return this; - } - /** - * The region in which SDB client needs to work. When using this - * parameter, the configuration will expect the capitalized name of the - * region (for example AP_EAST_1) You'll need to use the name - * Regions.EU_WEST_1.name(). - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param region the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder region(String region) { - doSetProperty("region", region); - return this; - } - /** - * Amazon AWS Secret Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param secretKey the value to set - * @return the dsl builder - */ - default SdbEndpointBuilder secretKey(String secretKey) { - doSetProperty("secretKey", secretKey); - return this; - } - } - - /** - * Proxy enum for - * <code>org.apache.camel.component.aws.sdb.SdbOperations</code> enum. - */ - enum SdbOperations { - BatchDeleteAttributes, - BatchPutAttributes, - DeleteAttributes, - DeleteDomain, - DomainMetadata, - GetAttributes, - ListDomains, - PutAttributes, - Select; - } - - /** - * Proxy enum for <code>com.amazonaws.Protocol</code> enum. - */ - enum Protocol { - HTTP, - HTTPS; - } - - public interface SdbBuilders { - /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * Syntax: <code>aws-sdb:domainName</code> - * - * Path parameter: domainName (required) - * The name of the domain currently worked with. - * - * @param path domainName - * @return the dsl builder - */ - @Deprecated - default SdbEndpointBuilder awsSdb(String path) { - return SdbEndpointBuilderFactory.endpointBuilder("aws-sdb", path); - } - /** - * AWS SimpleDB (camel-aws-sdb) - * Store and Retrieve data from/to AWS SDB service. - * - * Category: cloud,database,nosql - * Since: 2.9 - * Maven coordinates: org.apache.camel:camel-aws-sdb - * - * Syntax: <code>aws-sdb:domainName</code> - * - * Path parameter: domainName (required) - * The name of the domain currently worked with. - * - * @param componentName to use a custom component name for the endpoint - * instead of the default name - * @param path domainName - * @return the dsl builder - */ - @Deprecated - default SdbEndpointBuilder awsSdb(String componentName, String path) { - return SdbEndpointBuilderFactory.endpointBuilder(componentName, path); - } - } - @Deprecated - static SdbEndpointBuilder endpointBuilder(String componentName, String path) { - class SdbEndpointBuilderImpl extends AbstractEndpointBuilder implements SdbEndpointBuilder { - public SdbEndpointBuilderImpl(String path) { - super(componentName, path); - } - } - return new SdbEndpointBuilderImpl(path); - } -} \ No newline at end of file
