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 2020/03/27 17:12:47 UTC

[camel] 02/03: CAMEL-14715 - Removed Camel-Eventadmin now in camel-karaf (camel-karaf migration), regen

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

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

commit 7c2bdb19c49b246646f9e274a78a55ae02c7427b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 27 18:09:35 2020 +0100

    CAMEL-14715 - Removed Camel-Eventadmin now in camel-karaf (camel-karaf migration), regen
---
 .../component/ComponentsBuilderFactory.java        |  12 --
 .../dsl/EventadminComponentBuilderFactory.java     | 144 ---------------------
 .../src/generated/resources/metadata.json          |  20 ---
 docs/components/modules/ROOT/nav.adoc              |   1 -
 .../modules/ROOT/pages/eventadmin-component.adoc   | 110 ----------------
 docs/components/modules/ROOT/pages/index.adoc      |   4 +-
 6 files changed, 1 insertion(+), 290 deletions(-)

diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 8b63717..afbeb20 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1334,18 +1334,6 @@ public interface ComponentsBuilderFactory {
         return org.apache.camel.builder.component.dsl.EtcdWatchComponentBuilderFactory.etcdWatch();
     }
     /**
-     * OSGi EventAdmin (camel-eventadmin)
-     * The eventadmin component can be used in an OSGi environment to receive
-     * OSGi EventAdmin events and process them.
-     * 
-     * Category: eventbus
-     * Since: 2.6
-     * Maven coordinates: org.apache.camel:camel-eventadmin
-     */
-    static org.apache.camel.builder.component.dsl.EventadminComponentBuilderFactory.EventadminComponentBuilder eventadmin() {
-        return org.apache.camel.builder.component.dsl.EventadminComponentBuilderFactory.eventadmin();
-    }
-    /**
      * Exec (camel-exec)
      * The exec component can be used to execute OS system commands.
      * 
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EventadminComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EventadminComponentBuilderFactory.java
deleted file mode 100644
index f03eaa0..0000000
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EventadminComponentBuilderFactory.java
+++ /dev/null
@@ -1,144 +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.builder.component.dsl;
-
-import javax.annotation.Generated;
-import org.apache.camel.Component;
-import org.apache.camel.builder.component.AbstractComponentBuilder;
-import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.eventadmin.EventAdminComponent;
-
-/**
- * The eventadmin component can be used in an OSGi environment to receive OSGi
- * EventAdmin events and process them.
- * 
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface EventadminComponentBuilderFactory {
-
-    /**
-     * OSGi EventAdmin (camel-eventadmin)
-     * The eventadmin component can be used in an OSGi environment to receive
-     * OSGi EventAdmin events and process them.
-     * 
-     * Category: eventbus
-     * Since: 2.6
-     * Maven coordinates: org.apache.camel:camel-eventadmin
-     */
-    static EventadminComponentBuilder eventadmin() {
-        return new EventadminComponentBuilderImpl();
-    }
-
-    /**
-     * Builder for the OSGi EventAdmin component.
-     */
-    interface EventadminComponentBuilder
-            extends
-                ComponentBuilder<EventAdminComponent> {
-        /**
-         * The OSGi BundleContext is automatic injected by Camel.
-         * 
-         * The option is a: <code>org.osgi.framework.BundleContext</code> type.
-         * 
-         * Group: common
-         */
-        default EventadminComponentBuilder bundleContext(
-                org.osgi.framework.BundleContext bundleContext) {
-            doSetProperty("bundleContext", bundleContext);
-            return this;
-        }
-        /**
-         * Allows for bridging the consumer to the Camel routing Error Handler,
-         * which mean any exceptions occurred while the consumer is trying to
-         * pickup incoming messages, or the likes, will now be processed as a
-         * message and handled by the routing Error Handler. By default the
-         * consumer will use the org.apache.camel.spi.ExceptionHandler to deal
-         * with exceptions, that will be logged at WARN or ERROR level and
-         * ignored.
-         * 
-         * The option is a: <code>boolean</code> type.
-         * 
-         * Default: false
-         * Group: consumer
-         */
-        default EventadminComponentBuilder bridgeErrorHandler(
-                boolean bridgeErrorHandler) {
-            doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
-            return this;
-        }
-        /**
-         * Whether the producer should be started lazy (on the first message).
-         * By starting lazy you can use this to allow CamelContext and routes to
-         * startup in situations where a producer may otherwise fail during
-         * starting and cause the route to fail being started. By deferring this
-         * startup to be lazy then the startup failure can be handled during
-         * routing messages via Camel's routing error handlers. Beware that when
-         * the first message is processed then creating and starting the
-         * producer may take a little time and prolong the total processing time
-         * of the processing.
-         * 
-         * The option is a: <code>boolean</code> type.
-         * 
-         * Default: false
-         * Group: producer
-         */
-        default EventadminComponentBuilder lazyStartProducer(
-                boolean lazyStartProducer) {
-            doSetProperty("lazyStartProducer", lazyStartProducer);
-            return this;
-        }
-        /**
-         * Whether the component should use basic property binding (Camel 2.x)
-         * or the newer property binding with additional capabilities.
-         * 
-         * The option is a: <code>boolean</code> type.
-         * 
-         * Default: false
-         * Group: advanced
-         */
-        default EventadminComponentBuilder basicPropertyBinding(
-                boolean basicPropertyBinding) {
-            doSetProperty("basicPropertyBinding", basicPropertyBinding);
-            return this;
-        }
-    }
-
-    class EventadminComponentBuilderImpl
-            extends
-                AbstractComponentBuilder<EventAdminComponent>
-            implements
-                EventadminComponentBuilder {
-        @Override
-        protected EventAdminComponent buildConcreteComponent() {
-            return new EventAdminComponent();
-        }
-        @Override
-        protected boolean setPropertyOnComponent(
-                Component component,
-                String name,
-                Object value) {
-            switch (name) {
-            case "bundleContext": ((EventAdminComponent) component).setBundleContext((org.osgi.framework.BundleContext) value); return true;
-            case "bridgeErrorHandler": ((EventAdminComponent) component).setBridgeErrorHandler((boolean) value); return true;
-            case "lazyStartProducer": ((EventAdminComponent) component).setLazyStartProducer((boolean) value); return true;
-            case "basicPropertyBinding": ((EventAdminComponent) component).setBasicPropertyBinding((boolean) value); return true;
-            default: return false;
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json
index ab19641..85db046 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -2249,26 +2249,6 @@
     "artifactId": "camel-etcd",
     "version": "3.2.0-SNAPSHOT"
   },
-  "EventadminComponentBuilderFactory": {
-    "kind": "component",
-    "scheme": "eventadmin",
-    "extendsScheme": "",
-    "syntax": "eventadmin:topic",
-    "title": "OSGi EventAdmin",
-    "description": "The eventadmin component can be used in an OSGi environment to receive OSGi EventAdmin events and process them.",
-    "label": "eventbus",
-    "deprecated": false,
-    "deprecationNote": "eventbus",
-    "async": false,
-    "consumerOnly": false,
-    "producerOnly": false,
-    "lenientProperties": false,
-    "javaType": "org.apache.camel.component.eventadmin.EventAdminComponent",
-    "firstVersion": "2.6.0",
-    "groupId": "org.apache.camel",
-    "artifactId": "camel-eventadmin",
-    "version": "3.2.0-SNAPSHOT"
-  },
   "ExecComponentBuilderFactory": {
     "kind": "component",
     "scheme": "exec",
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index b113801..1f6a866 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -263,7 +263,6 @@
 ** xref:openstack-swift-component.adoc[OpenStack Swift Component]
 ** xref:opentracing.adoc[OpenTracing Component]
 ** xref:optaplanner-component.adoc[OptaPlanner Component]
-** xref:eventadmin-component.adoc[OSGi EventAdmin Component]
 ** xref:paho-component.adoc[Paho Component]
 ** xref:pdf-component.adoc[PDF Component]
 ** xref:platform-http-component.adoc[Platform HTTP Component]
diff --git a/docs/components/modules/ROOT/pages/eventadmin-component.adoc b/docs/components/modules/ROOT/pages/eventadmin-component.adoc
deleted file mode 100644
index 1c08cac..0000000
--- a/docs/components/modules/ROOT/pages/eventadmin-component.adoc
+++ /dev/null
@@ -1,110 +0,0 @@
-[[eventadmin-component]]
-= OSGi EventAdmin Component
-:page-source: components/camel-eventadmin/src/main/docs/eventadmin-component.adoc
-
-*Since Camel 2.6*
-
-// HEADER START
-*Both producer and consumer is supported*
-// HEADER END
-
-The Eventadmin component can be used in an OSGi environment to receive
-OSGi EventAdmin events and process them.
-
-== Dependencies
-
-Maven users need to add the following dependency to their `pom.xml`
-
-[source,xml]
--------------------------------------------
-<dependency>
-  <groupId>org.apache.camel</groupId>
-  <artifactId>camel-eventadmin</artifactId>
-  <version>${camel-version}</version>
-</dependency>
--------------------------------------------
-
-where `${camel-version`} must be replaced by the actual version of Camel.
-
-== URI format
-
-[source,xml]
---------------------------
-eventadmin:topic[?options]
---------------------------
-
-where `topic` is the name of the topic to listen too.
-
-== URI options
-
-// component options: START
-The OSGi EventAdmin component supports 4 options, which are listed below.
-
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *bundleContext* (common) | The OSGi BundleContext is automatic injected by Camel |  | BundleContext
-| *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
-| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
-| *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
-|===
-// component options: END
-
-// endpoint options: START
-The OSGi EventAdmin endpoint is configured using URI syntax:
-
-----
-eventadmin:topic
-----
-
-with the following path and query parameters:
-
-=== Path Parameters (1 parameters):
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *topic* | Name of topic to listen or send to |  | String
-|===
-
-
-=== Query Parameters (7 parameters):
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *send* (common) | Whether to use 'send' or 'synchronous' deliver. Default false (async delivery) | false | boolean
-| *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
-| *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
-| *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. The value can be one of: InOnly, InOut, InOptionalOut |  | ExchangePattern
-| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
-| *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
-| *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
-|===
-// endpoint options: END
-
-== Message headers
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Message |Description
-| | |
-|=======================================================================
-
-== Message body
-
-The `in` message body will be set to the received Event.
-
-== Example usage
-
-[source,xml]
-------------------------------
-<route>
-    <from uri="eventadmin:*"/>
-    <to uri="stream:out"/>
-</route>
-------------------------------
diff --git a/docs/components/modules/ROOT/pages/index.adoc b/docs/components/modules/ROOT/pages/index.adoc
index d2891b4..f8c8c40 100644
--- a/docs/components/modules/ROOT/pages/index.adoc
+++ b/docs/components/modules/ROOT/pages/index.adoc
@@ -11,7 +11,7 @@ Below is the list of components that are provided by Apache Camel.
 == List of Components
 
 // components: START
-Number of Components: 330 in 263 JAR artifacts (1 deprecated)
+Number of Components: 329 in 262 JAR artifacts (1 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -501,8 +501,6 @@ Number of Components: 330 in 263 JAR artifacts (1 deprecated)
 
 | xref:optaplanner-component.adoc[OptaPlanner] (camel-optaplanner) | 2.13 | Solves the planning problem contained in a message with OptaPlanner.
 
-| xref:eventadmin-component.adoc[OSGi EventAdmin] (camel-eventadmin) | 2.6 | The eventadmin component can be used in an OSGi environment to receive OSGi EventAdmin events and process them.
-
 | xref:paho-component.adoc[Paho] (camel-paho) | 2.16 | Component for communicating with MQTT message brokers using Eclipse Paho MQTT Client.
 
 | xref:pdf-component.adoc[PDF] (camel-pdf) | 2.16 | The pdf components provides the ability to create, modify or extract content from PDF documents.