You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2019/08/01 19:30:58 UTC

[camel] branch camel-2.x updated: CAMEL-13811: Deprecate camel-boon

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

janbednar pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.x by this push:
     new 6988f53  CAMEL-13811: Deprecate camel-boon
6988f53 is described below

commit 6988f531dec37338efda8f0a0ab8deaca9abb57a
Author: Jan Bednář <ma...@janbednar.eu>
AuthorDate: Thu Aug 1 21:19:37 2019 +0200

    CAMEL-13811: Deprecate camel-boon
---
 camel-core/readme.adoc                                               | 2 +-
 .../src/main/java/org/apache/camel/builder/DataFormatClause.java     | 2 ++
 .../main/java/org/apache/camel/model/dataformat/BoonDataFormat.java  | 4 +++-
 components/camel-boon/pom.xml                                        | 2 +-
 components/camel-boon/src/main/docs/boon-dataformat.adoc             | 5 ++---
 .../main/java/org/apache/camel/component/boon/BoonDataFormat.java    | 2 ++
 components/readme.adoc                                               | 4 ++--
 docs/components/modules/ROOT/nav.adoc                                | 2 +-
 8 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/camel-core/readme.adoc b/camel-core/readme.adoc
index 601cc9a..1be8cc8 100644
--- a/camel-core/readme.adoc
+++ b/camel-core/readme.adoc
@@ -106,7 +106,7 @@ Data Formats
 
 
 // dataformats: START
-Number of Data Formats: 4 in 39 JAR artifacts (5 deprecated)
+Number of Data Formats: 4 in 39 JAR artifacts (6 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
diff --git a/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java b/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
index 91420b0..291920b 100644
--- a/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
+++ b/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
@@ -206,7 +206,9 @@ public class DataFormatClause<T extends ProcessorDefinition<?>> {
      * Uses the Boon data format
      *
      * @param classType the POJO class type
+     * @deprecated Not functional in Java 9+ and will be removed in Apache Camel 3.0.0
      */
+    @Deprecated
     public T boon(Class<?> classType) {
         BoonDataFormat boon = new BoonDataFormat();
         boon.setUnmarshalType(classType);
diff --git a/camel-core/src/main/java/org/apache/camel/model/dataformat/BoonDataFormat.java b/camel-core/src/main/java/org/apache/camel/model/dataformat/BoonDataFormat.java
index 498fbf0..143011a 100644
--- a/camel-core/src/main/java/org/apache/camel/model/dataformat/BoonDataFormat.java
+++ b/camel-core/src/main/java/org/apache/camel/model/dataformat/BoonDataFormat.java
@@ -32,9 +32,11 @@ import org.apache.camel.util.ObjectHelper;
 /**
  * Boon data format is used for unmarshal a JSon payload to POJO or to marshal POJO back to JSon payload.
  */
-@Metadata(firstVersion = "2.16.0", label = "dataformat,transformation,json", title = "Boon")
+@Metadata(firstVersion = "2.16.0", label = "dataformat,transformation,json", title = "Boon",
+    deprecationNode = "Not functional in Java 9+ and will be removed in Apache Camel 3.0.0")
 @XmlRootElement(name = "boon")
 @XmlAccessorType(XmlAccessType.FIELD)
+@Deprecated
 public class BoonDataFormat extends DataFormatDefinition {
 
     @XmlAttribute(required = true)
diff --git a/components/camel-boon/pom.xml b/components/camel-boon/pom.xml
index ffb464e..6c4f85e 100644
--- a/components/camel-boon/pom.xml
+++ b/components/camel-boon/pom.xml
@@ -28,7 +28,7 @@
 
     <artifactId>camel-boon</artifactId>
     <packaging>jar</packaging>
-    <name>Camel :: Boon</name>
+    <name>Camel :: Boon (deprecated)</name>
     <description>Camel Boon support</description>
 
     <properties>
diff --git a/components/camel-boon/src/main/docs/boon-dataformat.adoc b/components/camel-boon/src/main/docs/boon-dataformat.adoc
index a91bfe8..7cc191f 100644
--- a/components/camel-boon/src/main/docs/boon-dataformat.adoc
+++ b/components/camel-boon/src/main/docs/boon-dataformat.adoc
@@ -1,5 +1,4 @@
-[[boon-dataformat]]
-== Boon DataFormat
+== Boon DataFormat (deprecated)
 
 *Available as of Camel version 2.16*
 
@@ -89,4 +88,4 @@ from("activemq:My.Queue")
   <artifactId>camel-boon</artifactId>
   <version>x.x.x</version>
 </dependency>
--------------------------------------
+-------------------------------------
\ No newline at end of file
diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/BoonDataFormat.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/BoonDataFormat.java
index a867c32..9c91757 100644
--- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/BoonDataFormat.java
+++ b/components/camel-boon/src/main/java/org/apache/camel/component/boon/BoonDataFormat.java
@@ -38,7 +38,9 @@ import org.boon.json.ObjectMapper;
  * {@link DataFormat}) using <a
  * href="http://richardhightower.github.io/site/Boon/">Boon</a> to marshal to
  * and from JSON.
+ * @deprecated Not functional in Java 9+ and will be removed in Apache Camel 3.0.0
  */
+@Deprecated
 public class BoonDataFormat extends ServiceSupport implements DataFormat, DataFormatName, NonManagedService {
 
     private final ObjectMapper objectMapper;
diff --git a/components/readme.adoc b/components/readme.adoc
index e143454..205b0eb 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -949,7 +949,7 @@ Data Formats
 ^^^^^^^^^^^^
 
 // dataformats: START
-Number of Data Formats: 49 in 39 JAR artifacts (5 deprecated)
+Number of Data Formats: 49 in 39 JAR artifacts (6 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -971,7 +971,7 @@ Number of Data Formats: 49 in 39 JAR artifacts (5 deprecated)
 
 | link:camel-bindy/src/main/docs/bindy-dataformat.adoc[Bindy Key Value Pair] (camel-bindy) | 2.0 | The Bindy data format is used for working with flat payloads (such as CSV, delimited, fixed length formats, or FIX messages).
 
-| link:camel-boon/src/main/docs/boon-dataformat.adoc[Boon] (camel-boon) | 2.16 | Boon data format is used for unmarshal a JSon payload to POJO or to marshal POJO back to JSon payload.
+| link:camel-boon/src/main/docs/boon-dataformat.adoc[Boon] (camel-boon) | 2.16 | *deprecated* Boon data format is used for unmarshal a JSon payload to POJO or to marshal POJO back to JSon payload.
 
 | link:camel-castor/src/main/docs/castor-dataformat.adoc[Castor] (camel-castor) | 2.1 | *deprecated* Castor data format is used for unmarshal a XML payload to POJO or to marshal POJO back to XML payload.
 
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index 4148ec9..0f61ad5 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -46,7 +46,7 @@
 * xref:bindy-dataformat.adoc[Bindy DataFormat]
 * xref:blueprint.adoc[Using OSGi blueprint with Camel]
 * xref:bonita-component.adoc[Bonita Component]
-* xref:boon-dataformat.adoc[Boon DataFormat]
+* xref:boon-dataformat.adoc[Boon DataFormat (deprecated)]
 * xref:braintree-component.adoc[Braintree Component]
 * xref:cache-component.adoc[EHCache Component (deprecated)]
 * xref:caffeine-cache-component.adoc[Caffeine Cache Component]