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 823a4f471f3d194abfbbe54204dc59e2439a9050
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Apr 7 14:42:36 2020 +0200

    Camel-djl: Regen and add components markers for docs
---
 .../camel-djl/src/main/docs/djl-component.adoc     |  46 +++--
 .../component/ComponentsBuilderFactory.java        |  11 ++
 .../component/dsl/DjlComponentBuilderFactory.java  | 106 ++++++++++
 .../src/generated/resources/metadata.json          |  21 ++
 .../builder/endpoint/EndpointBuilderFactory.java   |   1 +
 .../camel/builder/endpoint/EndpointBuilders.java   |   1 +
 .../endpoint/dsl/DJLEndpointBuilderFactory.java    | 219 +++++++++++++++++++++
 7 files changed, 387 insertions(+), 18 deletions(-)

diff --git a/components/camel-djl/src/main/docs/djl-component.adoc 
b/components/camel-djl/src/main/docs/djl-component.adoc
index d99e703..5de8bde 100644
--- a/components/camel-djl/src/main/docs/djl-component.adoc
+++ b/components/camel-djl/src/main/docs/djl-component.adoc
@@ -1,8 +1,11 @@
 [[djl-component]]
-= Deep Java Library Component
+= DJL Component
 
 *Since Camel 3.2*
 
+*Since Camel 3.2*
+
+
 // HEADER START
 *Only producer is supported*
 // HEADER END
@@ -25,6 +28,19 @@ following dependency to their `pom.xml`:
 </dependency>
 ----
 
+// component options: START
+The DJL component supports 2 options, which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *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
+
 The DJL component only supports producer endpoints.
 
 // endpoint options: START
@@ -38,32 +54,26 @@ with the following path and query parameters:
 
 === Path Parameters (1 parameters):
 
+
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *application* | *Required* Common deep learning application type. The value 
can be one of:
-`cv/image_classification`,
-`cv/object_detection`,
-`cv/semantic_segmentation`,
-`cv/instance_segmentation`,
-`cv/pose_estimation`,
-`cv/image_classification`,
-`cv/action_recognition`,
-`nlp/question_answer`,
-`nlp/text_classification`
-
-| | String
+| *application* | *Required* Application name |  | String
 |===
 
-=== Query Parameters (3 parameters):
+
+=== Query Parameters (6 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *artifactId* (producer) | The artifact id identifies Zoo inference model |  
| String
-| *model* (producer) | Custom Deep Learning Model bean id. Bean should 
implement ai.djl.Model |  | String
-| *translator* (producer) | Custom Translator for pre-processing and 
postprocessing bean id. Bean should implement ai.djl.translate.Translator |  | 
String
+| *artifactId* (producer) | Model Artifact |  | String
+| *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 [...]
+| *model* (producer) | Model |  | String
+| *translator* (producer) | Translator |  | String
+| *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
 
@@ -200,4 +210,4 @@ context.getRegistry().bind("MyTranslator", translator);
 
 from("file:/data/mnist/0/10.png")
     .to("djl:cv/image_classification?model=MyModel&translator=MyTranslator");
-----
\ No newline at end of file
+----
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 eb58993..ea91a50 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
@@ -1205,6 +1205,17 @@ public interface ComponentsBuilderFactory {
         return 
org.apache.camel.builder.component.dsl.DisruptorVmComponentBuilderFactory.disruptorVm();
     }
     /**
+     * DJL (camel-djl)
+     * Represents a DJL endpoint.
+     * 
+     * Category: deeplearning
+     * Since: 3.2
+     * Maven coordinates: org.apache.camel:camel-djl
+     */
+    static 
org.apache.camel.builder.component.dsl.DjlComponentBuilderFactory.DjlComponentBuilder
 djl() {
+        return 
org.apache.camel.builder.component.dsl.DjlComponentBuilderFactory.djl();
+    }
+    /**
      * DNS (camel-dns)
      * To lookup domain information and run DNS queries using DNSJava.
      * 
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
new file mode 100644
index 0000000..c07ec9f
--- /dev/null
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
@@ -0,0 +1,106 @@
+/*
+ * 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.djl.DJLComponent;
+
+/**
+ * Represents a DJL endpoint.
+ * 
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
+public interface DjlComponentBuilderFactory {
+
+    /**
+     * DJL (camel-djl)
+     * Represents a DJL endpoint.
+     * 
+     * Category: deeplearning
+     * Since: 3.2
+     * Maven coordinates: org.apache.camel:camel-djl
+     */
+    static DjlComponentBuilder djl() {
+        return new DjlComponentBuilderImpl();
+    }
+
+    /**
+     * Builder for the DJL component.
+     */
+    interface DjlComponentBuilder extends ComponentBuilder<DJLComponent> {
+        /**
+         * 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 DjlComponentBuilder 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 DjlComponentBuilder basicPropertyBinding(
+                boolean basicPropertyBinding) {
+            doSetProperty("basicPropertyBinding", basicPropertyBinding);
+            return this;
+        }
+    }
+
+    class DjlComponentBuilderImpl
+            extends
+                AbstractComponentBuilder<DJLComponent>
+            implements
+                DjlComponentBuilder {
+        @Override
+        protected DJLComponent buildConcreteComponent() {
+            return new DJLComponent();
+        }
+        @Override
+        protected boolean setPropertyOnComponent(
+                Component component,
+                String name,
+                Object value) {
+            switch (name) {
+            case "lazyStartProducer": ((DJLComponent) 
component).setLazyStartProducer((boolean) value); return true;
+            case "basicPropertyBinding": ((DJLComponent) 
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 149c2fc..f720909 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -2130,6 +2130,27 @@
     "artifactId": "camel-disruptor",
     "version": "3.3.0-SNAPSHOT"
   },
+  "DjlComponentBuilderFactory": {
+    "kind": "component",
+    "name": "djl",
+    "scheme": "djl",
+    "extendsScheme": "",
+    "syntax": "djl:application",
+    "title": "DJL",
+    "description": "Represents a DJL endpoint.",
+    "label": "deeplearning",
+    "deprecated": false,
+    "deprecationNote": "deeplearning",
+    "async": false,
+    "consumerOnly": false,
+    "producerOnly": true,
+    "lenientProperties": false,
+    "javaType": "org.apache.camel.component.djl.DJLComponent",
+    "firstVersion": "3.2.0",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-djl",
+    "version": "3.3.0-SNAPSHOT"
+  },
   "DnsComponentBuilderFactory": {
     "kind": "component",
     "name": "dns",
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 5489c58..5b65bd9 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -77,6 +77,7 @@ public interface EndpointBuilderFactory
             
org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory.CwBuilders,
             
org.apache.camel.builder.endpoint.dsl.CxfEndpointBuilderFactory.CxfBuilders,
             
org.apache.camel.builder.endpoint.dsl.CxfRsEndpointBuilderFactory.CxfRsBuilders,
+            
org.apache.camel.builder.endpoint.dsl.DJLEndpointBuilderFactory.DJLBuilders,
             
org.apache.camel.builder.endpoint.dsl.DataFormatEndpointBuilderFactory.DataFormatBuilders,
             
org.apache.camel.builder.endpoint.dsl.DataSetEndpointBuilderFactory.DataSetBuilders,
             
org.apache.camel.builder.endpoint.dsl.DataSetTestEndpointBuilderFactory.DataSetTestBuilders,
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 32badc8..f85feec 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -74,6 +74,7 @@ public interface EndpointBuilders
             org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.CxfEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.CxfRsEndpointBuilderFactory,
+            org.apache.camel.builder.endpoint.dsl.DJLEndpointBuilderFactory,
             
org.apache.camel.builder.endpoint.dsl.DataFormatEndpointBuilderFactory,
             
org.apache.camel.builder.endpoint.dsl.DataSetEndpointBuilderFactory,
             
org.apache.camel.builder.endpoint.dsl.DataSetTestEndpointBuilderFactory,
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
new file mode 100644
index 0000000..5fceeb0
--- /dev/null
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
@@ -0,0 +1,219 @@
+/*
+ * 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.endpoint.dsl;
+
+import javax.annotation.Generated;
+import org.apache.camel.builder.EndpointConsumerBuilder;
+import org.apache.camel.builder.EndpointProducerBuilder;
+import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
+
+/**
+ * Represents a DJL endpoint.
+ * 
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
+public interface DJLEndpointBuilderFactory {
+
+
+    /**
+     * Builder for endpoint for the DJL component.
+     */
+    public interface DJLEndpointBuilder extends EndpointProducerBuilder {
+        default AdvancedDJLEndpointBuilder advanced() {
+            return (AdvancedDJLEndpointBuilder) this;
+        }
+        /**
+         * Model Artifact.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default DJLEndpointBuilder artifactId(String artifactId) {
+            doSetProperty("artifactId", artifactId);
+            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 DJLEndpointBuilder lazyStartProducer(boolean 
lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            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 will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: producer
+         */
+        default DJLEndpointBuilder lazyStartProducer(String lazyStartProducer) 
{
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+        /**
+         * Model.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default DJLEndpointBuilder model(String model) {
+            doSetProperty("model", model);
+            return this;
+        }
+        /**
+         * Translator.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default DJLEndpointBuilder translator(String translator) {
+            doSetProperty("translator", translator);
+            return this;
+        }
+    }
+
+    /**
+     * Advanced builder for endpoint for the DJL component.
+     */
+    public interface AdvancedDJLEndpointBuilder
+            extends
+                EndpointProducerBuilder {
+        default DJLEndpointBuilder basic() {
+            return (DJLEndpointBuilder) this;
+        }
+        /**
+         * Whether the endpoint 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 AdvancedDJLEndpointBuilder basicPropertyBinding(
+                boolean basicPropertyBinding) {
+            doSetProperty("basicPropertyBinding", basicPropertyBinding);
+            return this;
+        }
+        /**
+         * Whether the endpoint should use basic property binding (Camel 2.x) 
or
+         * the newer property binding with additional capabilities.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: advanced
+         */
+        default AdvancedDJLEndpointBuilder basicPropertyBinding(
+                String basicPropertyBinding) {
+            doSetProperty("basicPropertyBinding", basicPropertyBinding);
+            return this;
+        }
+        /**
+         * Sets whether synchronous processing should be strictly used, or 
Camel
+         * is allowed to use asynchronous processing (if supported).
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: advanced
+         */
+        default AdvancedDJLEndpointBuilder synchronous(boolean synchronous) {
+            doSetProperty("synchronous", synchronous);
+            return this;
+        }
+        /**
+         * Sets whether synchronous processing should be strictly used, or 
Camel
+         * is allowed to use asynchronous processing (if supported).
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: advanced
+         */
+        default AdvancedDJLEndpointBuilder synchronous(String synchronous) {
+            doSetProperty("synchronous", synchronous);
+            return this;
+        }
+    }
+
+    public interface DJLBuilders {
+        /**
+         * DJL (camel-djl)
+         * Represents a DJL endpoint.
+         * 
+         * Category: deeplearning
+         * Since: 3.2
+         * Maven coordinates: org.apache.camel:camel-djl
+         * 
+         * Syntax: <code>djl:application</code>
+         * 
+         * Path parameter: application (required)
+         * Application name
+         */
+        default DJLEndpointBuilder djl(String path) {
+            return DJLEndpointBuilderFactory.djl(path);
+        }
+    }
+    /**
+     * DJL (camel-djl)
+     * Represents a DJL endpoint.
+     * 
+     * Category: deeplearning
+     * Since: 3.2
+     * Maven coordinates: org.apache.camel:camel-djl
+     * 
+     * Syntax: <code>djl:application</code>
+     * 
+     * Path parameter: application (required)
+     * Application name
+     */
+    static DJLEndpointBuilder djl(String path) {
+        class DJLEndpointBuilderImpl extends AbstractEndpointBuilder 
implements DJLEndpointBuilder, AdvancedDJLEndpointBuilder {
+            public DJLEndpointBuilderImpl(String path) {
+                super("djl", path);
+            }
+        }
+        return new DJLEndpointBuilderImpl(path);
+    }
+}
\ No newline at end of file

Reply via email to