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 2018/09/05 07:22:53 UTC

[camel] branch camel-2.22.x updated: CAMEL-12778: Deprecate standalone CamelCatalog as MXBean as its not compliant and not in use anyway.

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

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


The following commit(s) were added to refs/heads/camel-2.22.x by this push:
     new e06d485  CAMEL-12778: Deprecate standalone CamelCatalog as MXBean as its not compliant and not in use anyway.
e06d485 is described below

commit e06d485cbe13aa4d5a8ffe7c4db62d9d3ddbf280
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Sep 5 09:21:24 2018 +0200

    CAMEL-12778: Deprecate standalone CamelCatalog as MXBean as its not compliant and not in use anyway.
---
 .../java/org/apache/camel/catalog/CamelCatalogMBeanExporter.java     | 1 +
 .../java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/platforms/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalogMBeanExporter.java b/platforms/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalogMBeanExporter.java
index fd95a16..c7a69df 100644
--- a/platforms/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalogMBeanExporter.java
+++ b/platforms/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalogMBeanExporter.java
@@ -25,6 +25,7 @@ import javax.management.ObjectName;
 /**
  * MBean exporter to register the {@link CamelCatalog} in JMX.
  */
+@Deprecated
 public class CamelCatalogMBeanExporter {
 
     public static final String MBEAN_NAME = "org.apache.camel.catalog:type=catalog,name=catalog";
diff --git a/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java b/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
index 1d6d1bc..f042ce6 100644
--- a/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
+++ b/platforms/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogMBeanExporterTest.java
@@ -20,10 +20,15 @@ import java.lang.management.ManagementFactory;
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
+import org.junit.Ignore;
+import org.junit.Test;
+
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
+@Deprecated
+@Ignore
 public class CamelCatalogMBeanExporterTest {
 
     private CamelCatalogMBeanExporter exporter = new CamelCatalogMBeanExporter();