You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/03 06:32:27 UTC

[camel] 11/18: Rename Spark(Component|Endpoint) to SparkRest\1 to avoid conflicts in the endpoint dsl

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6f8f601854cba2b1dd620621743aa785afa9eb86
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Mon Mar 2 19:18:08 2020 +0100

    Rename Spark(Component|Endpoint) to SparkRest\1 to avoid conflicts in the endpoint dsl
---
 .../sparkrest/SparkComponentConfigurer.java        | 65 ----------------------
 .../sparkrest/SparkEndpointConfigurer.java         | 45 ---------------
 2 files changed, 110 deletions(-)

diff --git a/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkComponentConfigurer.java b/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkComponentConfigurer.java
deleted file mode 100644
index d60c1b1..0000000
--- a/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkComponentConfigurer.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.sparkrest;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class SparkComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
-
-    private org.apache.camel.component.sparkrest.SparkConfiguration getOrCreateConfiguration(SparkRestComponent target) {
-        if (target.getSparkConfiguration() == null) {
-            target.setSparkConfiguration(new org.apache.camel.component.sparkrest.SparkConfiguration());
-        }
-        return target.getSparkConfiguration();
-    }
-
-    @Override
-    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
-        SparkRestComponent target = (SparkRestComponent) obj;
-        switch (ignoreCase ? name.toLowerCase() : name) {
-        case "basicpropertybinding":
-        case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
-        case "bridgeerrorhandler":
-        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
-        case "disablestreamcache":
-        case "disableStreamCache": getOrCreateConfiguration(target).setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
-        case "ipaddress":
-        case "ipAddress": target.setIpAddress(property(camelContext, java.lang.String.class, value)); return true;
-        case "keystorefile":
-        case "keystoreFile": target.setKeystoreFile(property(camelContext, java.lang.String.class, value)); return true;
-        case "keystorepassword":
-        case "keystorePassword": target.setKeystorePassword(property(camelContext, java.lang.String.class, value)); return true;
-        case "mapheaders":
-        case "mapHeaders": getOrCreateConfiguration(target).setMapHeaders(property(camelContext, boolean.class, value)); return true;
-        case "matchonuriprefix":
-        case "matchOnUriPrefix": getOrCreateConfiguration(target).setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
-        case "maxthreads":
-        case "maxThreads": target.setMaxThreads(property(camelContext, int.class, value)); return true;
-        case "minthreads":
-        case "minThreads": target.setMinThreads(property(camelContext, int.class, value)); return true;
-        case "port": target.setPort(property(camelContext, int.class, value)); return true;
-        case "sparkbinding":
-        case "sparkBinding": target.setSparkBinding(property(camelContext, org.apache.camel.component.sparkrest.SparkBinding.class, value)); return true;
-        case "sparkconfiguration":
-        case "sparkConfiguration": target.setSparkConfiguration(property(camelContext, org.apache.camel.component.sparkrest.SparkConfiguration.class, value)); return true;
-        case "timeoutmillis":
-        case "timeOutMillis": target.setTimeOutMillis(property(camelContext, int.class, value)); return true;
-        case "transferexception":
-        case "transferException": getOrCreateConfiguration(target).setTransferException(property(camelContext, boolean.class, value)); return true;
-        case "truststorefile":
-        case "truststoreFile": target.setTruststoreFile(property(camelContext, java.lang.String.class, value)); return true;
-        case "truststorepassword":
-        case "truststorePassword": target.setTruststorePassword(property(camelContext, java.lang.String.class, value)); return true;
-        case "urldecodeheaders":
-        case "urlDecodeHeaders": getOrCreateConfiguration(target).setUrlDecodeHeaders(property(camelContext, boolean.class, value)); return true;
-        default: return false;
-        }
-    }
-
-}
-
diff --git a/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkEndpointConfigurer.java b/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkEndpointConfigurer.java
deleted file mode 100644
index 5210d4a..0000000
--- a/components/camel-spark-rest/src/generated/java/org/apache/camel/component/sparkrest/SparkEndpointConfigurer.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.sparkrest;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class SparkEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
-
-    @Override
-    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
-        SparkRestEndpoint target = (SparkRestEndpoint) obj;
-        switch (ignoreCase ? name.toLowerCase() : name) {
-        case "accept": target.setAccept(property(camelContext, java.lang.String.class, value)); return true;
-        case "basicpropertybinding":
-        case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
-        case "bridgeerrorhandler":
-        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
-        case "disablestreamcache":
-        case "disableStreamCache": target.getSparkConfiguration().setDisableStreamCache(property(camelContext, boolean.class, value)); return true;
-        case "exceptionhandler":
-        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
-        case "exchangepattern":
-        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
-        case "mapheaders":
-        case "mapHeaders": target.getSparkConfiguration().setMapHeaders(property(camelContext, boolean.class, value)); return true;
-        case "matchonuriprefix":
-        case "matchOnUriPrefix": target.getSparkConfiguration().setMatchOnUriPrefix(property(camelContext, boolean.class, value)); return true;
-        case "sparkbinding":
-        case "sparkBinding": target.setSparkBinding(property(camelContext, org.apache.camel.component.sparkrest.SparkBinding.class, value)); return true;
-        case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true;
-        case "transferexception":
-        case "transferException": target.getSparkConfiguration().setTransferException(property(camelContext, boolean.class, value)); return true;
-        case "urldecodeheaders":
-        case "urlDecodeHeaders": target.getSparkConfiguration().setUrlDecodeHeaders(property(camelContext, boolean.class, value)); return true;
-        default: return false;
-        }
-    }
-
-}
-