You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/01/27 07:37:12 UTC

[camel] 07/12: CAMEL-18970 - Camel-Any23: Remove component

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

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

commit 439d3fe89e26dd884dda741322b14b2b3a503968
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 27 08:01:14 2023 +0100

    CAMEL-18970 - Camel-Any23: Remove component
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../reifier/dataformat/Any23DataFormatReifier.java | 39 ----------------------
 .../reifier/dataformat/DataFormatReifier.java      |  5 +--
 2 files changed, 1 insertion(+), 43 deletions(-)

diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/Any23DataFormatReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/Any23DataFormatReifier.java
deleted file mode 100644
index 33682ef964f..00000000000
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/Any23DataFormatReifier.java
+++ /dev/null
@@ -1,39 +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.reifier.dataformat;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.model.DataFormatDefinition;
-import org.apache.camel.model.dataformat.Any23DataFormat;
-
-public class Any23DataFormatReifier extends DataFormatReifier<Any23DataFormat> {
-
-    public Any23DataFormatReifier(CamelContext camelContext, DataFormatDefinition definition) {
-        super(camelContext, (Any23DataFormat) definition);
-    }
-
-    @Override
-    protected void prepareDataFormatConfig(Map<String, Object> properties) {
-        properties.put("outputFormat", definition.getOutputFormat());
-        properties.put("configuration", definition.getConfigurationAsMap());
-        properties.put("extractors", definition.getExtractors());
-        properties.put("baseURI", definition.getBaseUri());
-    }
-
-}
diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
index f7360c85dbd..f941db32bf1 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
@@ -26,7 +26,6 @@ import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.model.DataFormatDefinition;
 import org.apache.camel.model.Model;
 import org.apache.camel.model.dataformat.ASN1DataFormat;
-import org.apache.camel.model.dataformat.Any23DataFormat;
 import org.apache.camel.model.dataformat.AvroDataFormat;
 import org.apache.camel.model.dataformat.BarcodeDataFormat;
 import org.apache.camel.model.dataformat.Base64DataFormat;
@@ -176,9 +175,7 @@ public abstract class DataFormatReifier<T extends DataFormatDefinition> extends
     // CHECKSTYLE:OFF
     private static DataFormatReifier<? extends DataFormatDefinition> coreReifier(
             CamelContext camelContext, DataFormatDefinition definition) {
-        if (definition instanceof Any23DataFormat) {
-            return new Any23DataFormatReifier(camelContext, definition);
-        } else if (definition instanceof ASN1DataFormat) {
+        if (definition instanceof ASN1DataFormat) {
             return new ASN1DataFormatReifier(camelContext, definition);
         } else if (definition instanceof AvroDataFormat) {
             return new AvroDataFormatReifier(camelContext, definition);