You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/09/21 13:00:39 UTC

[camel] branch main updated: CAMEL-16183: Remove in old spring xml XSD which is deprecated and no longer in use.

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 8116b63  CAMEL-16183: Remove <proxy> in old spring xml XSD which is deprecated and no longer in use.
8116b63 is described below

commit 8116b6395c3ff5d17d4425b7bbbcfc9420357015
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 21 14:58:54 2021 +0200

    CAMEL-16183: Remove <proxy> in old spring xml XSD which is deprecated and no longer in use.
---
 .../resources/org/apache/camel/core/xml/jaxb.index |  1 -
 .../resources/org/apache/camel/core/xml/proxy.json | 19 ------
 .../core/xml/CamelProxyFactoryDefinition.java      | 73 ----------------------
 3 files changed, 93 deletions(-)

diff --git a/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/jaxb.index b/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/jaxb.index
index 97912b3..309a9c2 100644
--- a/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/jaxb.index
+++ b/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/jaxb.index
@@ -3,7 +3,6 @@ CamelJMXAgentDefinition
 CamelPropertyPlaceholderDefinition
 CamelPropertyPlaceholderFunctionDefinition
 CamelPropertyPlaceholderLocationDefinition
-CamelProxyFactoryDefinition
 CamelRouteControllerDefinition
 CamelServiceExporterDefinition
 CamelStreamCachingStrategyDefinition
diff --git a/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/proxy.json b/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/proxy.json
deleted file mode 100644
index f297fb4..0000000
--- a/core/camel-core-xml/src/generated/resources/org/apache/camel/core/xml/proxy.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "model": {
-    "kind": "model",
-    "name": "proxy",
-    "title": "Proxy",
-    "description": "To proxy a service call using a interface",
-    "deprecated": true,
-    "label": "spring,configuration",
-    "javaType": "org.apache.camel.core.xml.CamelProxyFactoryDefinition",
-    "input": false,
-    "output": false
-  },
-  "properties": {
-    "serviceUrl": { "kind": "attribute", "displayName": "Service Url", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The camel endpoint uri used to send the message to when calling the service from the interface." },
-    "serviceInterface": { "kind": "attribute", "displayName": "Service Interface", "required": false, "type": "string", "javaType": "java.lang.Class<java.lang.Object>", "deprecated": false, "autowired": false, "secret": false, "description": "Java interfaces to use as facade for the service to be proxied" },
-    "camelContextId": { "kind": "attribute", "displayName": "Camel Context Id", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of the CamelContext to use, if there is multiple CamelContext in the same JVM." },
-    "id": { "kind": "attribute", "displayName": "Id", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" }
-  }
-}
diff --git a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/CamelProxyFactoryDefinition.java b/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/CamelProxyFactoryDefinition.java
deleted file mode 100644
index c1ccc67..0000000
--- a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/CamelProxyFactoryDefinition.java
+++ /dev/null
@@ -1,73 +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.core.xml;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
-
-import org.apache.camel.model.IdentifiedType;
-import org.apache.camel.spi.Metadata;
-
-/**
- * To proxy a service call using a interface
- */
-@Metadata(label = "spring,configuration")
-@XmlRootElement(name = "proxy")
-@Deprecated
-public class CamelProxyFactoryDefinition extends IdentifiedType {
-
-    @XmlAttribute
-    private String serviceUrl;
-    @XmlAttribute
-    private Class<?> serviceInterface;
-    @XmlAttribute
-    private String camelContextId;
-
-    public String getServiceUrl() {
-        return serviceUrl;
-    }
-
-    /**
-     * The camel endpoint uri used to send the message to when calling the service from the interface.
-     */
-    public void setServiceUrl(String serviceUrl) {
-        this.serviceUrl = serviceUrl;
-    }
-
-    public Class<?> getServiceInterface() {
-        return serviceInterface;
-    }
-
-    /**
-     * Java interfaces to use as facade for the service to be proxied
-     */
-    public void setServiceInterface(Class<?> serviceInterface) {
-        this.serviceInterface = serviceInterface;
-    }
-
-    public String getCamelContextId() {
-        return camelContextId;
-    }
-
-    /**
-     * The id of the CamelContext to use, if there is multiple CamelContext in the same JVM.
-     */
-    public void setCamelContextId(String camelContextId) {
-        this.camelContextId = camelContextId;
-    }
-
-}