This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a2ed18c3aa4e CAMEL-23832: camel-cron - improve the component and
option descriptions (#30972)
a2ed18c3aa4e is described below
commit a2ed18c3aa4e321b6844101a26ee59e19535936d
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 11:39:29 2026 +0100
CAMEL-23832: camel-cron - improve the component and option descriptions
(#30972)
This commit rewrites the component description and the texts of 1 component
option (cronService) and 2 endpoint
options (name, schedule) of cron. The cronService text now says that it is
the name of a bean in the registry and how
the service is found when it is not set; the schedule text gives the five
to seven parts and that + is read as a space.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-cron is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/cron.json | 8 +++----
.../apache/camel/catalog/docs/cron-component.adoc | 2 +-
.../org/apache/camel/component/cron/cron.json | 8 +++----
.../camel-cron/src/main/docs/cron-component.adoc | 2 +-
.../apache/camel/component/cron/CronComponent.java | 8 +++----
.../apache/camel/component/cron/CronEndpoint.java | 2 +-
.../component/cron/api/CamelCronConfiguration.java | 15 ++++++------
.../component/ComponentsBuilderFactory.java | 4 ++--
.../component/dsl/CronComponentBuilderFactory.java | 14 ++++++-----
.../builder/endpoint/StaticEndpointBuilders.java | 18 +++++++++-----
.../endpoint/dsl/CronEndpointBuilderFactory.java | 28 +++++++++++++++-------
tasks/component-descriptions.md | 2 +-
12 files changed, 64 insertions(+), 47 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cron.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cron.json
index 297ef2aed73d..60eb5931414a 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cron.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cron.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "cron",
"title": "Cron",
- "description": "A generic interface for triggering events at times
specified through the Unix cron syntax.",
+ "description": "Trigger events at the times of a cron expression, using a
cron implementation such as camel-quartz or camel-spring.",
"deprecated": false,
"firstVersion": "3.1.0",
"label": "scheduling",
@@ -26,14 +26,14 @@
"componentProperties": {
"bridgeErrorHandler": { "index": 0, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
"autowiredEnabled": { "index": 1, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
- "cronService": { "index": 2, "kind": "property", "displayName": "Cron
Service", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The id of the CamelCronService to use
when multiple implementations are provided" }
+ "cronService": { "index": 2, "kind": "property", "displayName": "Cron
Service", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the CamelCronService bean
in the registry to use, when more than one is bound. If not set, the only
CamelCronService in the registry is used. If the registry has none, the one
that a module on the classpath prov [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "null" ], "description": "No body: the
message only starts the route" }
},
"properties": {
- "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The name of the cron
trigger" },
- "schedule": { "index": 1, "kind": "parameter", "displayName": "Schedule",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "A cron expression that
will be used to generate events" },
+ "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The name of the trigger,
which the cron implementation uses to identify its job. With camel-quartz it is
the name of the Quartz [...]
+ "schedule": { "index": 1, "kind": "parameter", "displayName": "Schedule",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The cron expression of
when to trigger, with five to seven parts separated by spaces: seconds
(optional), minutes, [...]
"bridgeErrorHandler": { "index": 2, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 3, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 4, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." }
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cron-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cron-component.adoc
index 8fa8f49cd0c9..9270c67f00ca 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cron-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cron-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Cron
:shortname: cron
:artifactid: camel-cron
-:description: A generic interface for triggering events at times specified
through the Unix cron syntax.
+:description: Trigger events at the times of a cron expression, using a cron
implementation such as camel-quartz or camel-spring.
:since: 3.1
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-cron/src/generated/resources/META-INF/org/apache/camel/component/cron/cron.json
b/components/camel-cron/src/generated/resources/META-INF/org/apache/camel/component/cron/cron.json
index 297ef2aed73d..60eb5931414a 100644
---
a/components/camel-cron/src/generated/resources/META-INF/org/apache/camel/component/cron/cron.json
+++
b/components/camel-cron/src/generated/resources/META-INF/org/apache/camel/component/cron/cron.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "cron",
"title": "Cron",
- "description": "A generic interface for triggering events at times
specified through the Unix cron syntax.",
+ "description": "Trigger events at the times of a cron expression, using a
cron implementation such as camel-quartz or camel-spring.",
"deprecated": false,
"firstVersion": "3.1.0",
"label": "scheduling",
@@ -26,14 +26,14 @@
"componentProperties": {
"bridgeErrorHandler": { "index": 0, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
"autowiredEnabled": { "index": 1, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
- "cronService": { "index": 2, "kind": "property", "displayName": "Cron
Service", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The id of the CamelCronService to use
when multiple implementations are provided" }
+ "cronService": { "index": 2, "kind": "property", "displayName": "Cron
Service", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the CamelCronService bean
in the registry to use, when more than one is bound. If not set, the only
CamelCronService in the registry is used. If the registry has none, the one
that a module on the classpath prov [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "null" ], "description": "No body: the
message only starts the route" }
},
"properties": {
- "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The name of the cron
trigger" },
- "schedule": { "index": 1, "kind": "parameter", "displayName": "Schedule",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "A cron expression that
will be used to generate events" },
+ "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The name of the trigger,
which the cron implementation uses to identify its job. With camel-quartz it is
the name of the Quartz [...]
+ "schedule": { "index": 1, "kind": "parameter", "displayName": "Schedule",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.cron.api.CamelCronConfiguration",
"configurationField": "configuration", "description": "The cron expression of
when to trigger, with five to seven parts separated by spaces: seconds
(optional), minutes, [...]
"bridgeErrorHandler": { "index": 2, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 3, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 4, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." }
diff --git a/components/camel-cron/src/main/docs/cron-component.adoc
b/components/camel-cron/src/main/docs/cron-component.adoc
index 8fa8f49cd0c9..9270c67f00ca 100644
--- a/components/camel-cron/src/main/docs/cron-component.adoc
+++ b/components/camel-cron/src/main/docs/cron-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Cron
:shortname: cron
:artifactid: camel-cron
-:description: A generic interface for triggering events at times specified
through the Unix cron syntax.
+:description: Trigger events at the times of a cron expression, using a cron
implementation such as camel-quartz or camel-spring.
:since: 3.1
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronComponent.java
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronComponent.java
index 1bad1cfd5de0..92d03ccbdd1a 100644
---
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronComponent.java
+++
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronComponent.java
@@ -34,7 +34,10 @@ import org.apache.camel.util.ObjectHelper;
@Component("cron")
public class CronComponent extends DefaultComponent {
- @Metadata(label = "advanced")
+ @Metadata(label = "advanced",
+ description = "The name of the CamelCronService bean in the
registry to use, when more than one is bound. If"
+ + " not set, the only CamelCronService in the
registry is used. If the registry has none, the one"
+ + " that a module on the classpath provides is
used, such as camel-quartz or camel-spring.")
private String cronService;
private CamelCronService service;
@@ -109,9 +112,6 @@ public class CronComponent extends DefaultComponent {
return cronService;
}
- /**
- * The id of the CamelCronService to use when multiple implementations are
provided
- */
public void setCronService(String cronService) {
this.cronService = cronService;
}
diff --git
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronEndpoint.java
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronEndpoint.java
index 716fab485903..417bd3f519ba 100644
---
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronEndpoint.java
+++
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronEndpoint.java
@@ -33,7 +33,7 @@ import org.apache.camel.support.service.ServiceHelper;
import org.apache.camel.util.ObjectHelper;
/**
- * A generic interface for triggering events at times specified through the
Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
implementation such as camel-quartz or camel-spring.
*/
@UriEndpoint(firstVersion = "3.1.0", scheme = "cron", title = "Cron", syntax =
"cron:name", consumerOnly = true,
remote = false, category = { Category.SCHEDULING })
diff --git
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/api/CamelCronConfiguration.java
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/api/CamelCronConfiguration.java
index 2f2f0279be7e..1200786cf2b1 100644
---
a/components/camel-cron/src/main/java/org/apache/camel/component/cron/api/CamelCronConfiguration.java
+++
b/components/camel-cron/src/main/java/org/apache/camel/component/cron/api/CamelCronConfiguration.java
@@ -26,11 +26,16 @@ import org.apache.camel.spi.UriPath;
@UriParams
public class CamelCronConfiguration {
- @UriPath
+ @UriPath(description = "The name of the trigger, which the cron
implementation uses to identify its job. With camel-quartz"
+ + " it is the name of the Quartz trigger, which
must be unique, and a value of the form group/name"
+ + " also sets the trigger group.")
@Metadata(required = true)
private String name;
- @UriParam
+ @UriParam(description = "The cron expression of when to trigger, with five
to seven parts separated by spaces: seconds"
+ + " (optional), minutes, hours, day of month,
month, day of week, and year (optional). A"
+ + " five-part expression has no seconds and
follows the Unix cron syntax. A + in the value is"
+ + " read as a space.")
@Metadata(required = true)
private String schedule;
@@ -38,9 +43,6 @@ public class CamelCronConfiguration {
return name;
}
- /**
- * The name of the cron trigger
- */
public void setName(String name) {
this.name = name;
}
@@ -49,9 +51,6 @@ public class CamelCronConfiguration {
return schedule;
}
- /**
- * A cron expression that will be used to generate events
- */
public void setSchedule(String schedule) {
this.schedule = schedule;
}
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 92894f6b9098..244284353677 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1363,8 +1363,8 @@ public interface ComponentsBuilderFactory {
}
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through the
- * Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CronComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CronComponentBuilderFactory.java
index 0fe8455bcf16..691f160709d0 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CronComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CronComponentBuilderFactory.java
@@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.cron.CronComponent;
/**
- * A generic interface for triggering events at times specified through the
Unix
- * cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
implementation
+ * such as camel-quartz or camel-spring.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -34,8 +34,8 @@ public interface CronComponentBuilderFactory {
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through the
- * Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
@@ -103,8 +103,10 @@ public interface CronComponentBuilderFactory {
}
/**
- * The id of the CamelCronService to use when multiple implementations
- * are provided.
+ * The name of the CamelCronService bean in the registry to use, when
+ * more than one is bound. If not set, the only CamelCronService in the
+ * registry is used. If the registry has none, the one that a module on
+ * the classpath provides is used, such as camel-quartz or
camel-spring.
*
* The option is a: <code>java.lang.String</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 6483e89b28a3..d99076c7ebed 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -4365,8 +4365,8 @@ public class StaticEndpointBuilders {
}
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through the
- * Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
@@ -4375,7 +4375,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>cron:name</code>
*
* Path parameter: name (required)
- * The name of the cron trigger
+ * The name of the trigger, which the cron implementation uses to identify
+ * its job. With camel-quartz it is the name of the Quartz trigger, which
+ * must be unique, and a value of the form group/name also sets the trigger
+ * group.
*
* @param path name
* @return the dsl builder
@@ -4385,8 +4388,8 @@ public class StaticEndpointBuilders {
}
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through the
- * Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
@@ -4395,7 +4398,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>cron:name</code>
*
* Path parameter: name (required)
- * The name of the cron trigger
+ * The name of the trigger, which the cron implementation uses to identify
+ * its job. With camel-quartz it is the name of the Quartz trigger, which
+ * must be unique, and a value of the form group/name also sets the trigger
+ * group.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CronEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CronEndpointBuilderFactory.java
index 79b99ef510f8..5fe1aa8c4b4f 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CronEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CronEndpointBuilderFactory.java
@@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * A generic interface for triggering events at times specified through the
Unix
- * cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
implementation
+ * such as camel-quartz or camel-spring.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -46,7 +46,11 @@ public interface CronEndpointBuilderFactory {
}
/**
- * A cron expression that will be used to generate events.
+ * The cron expression of when to trigger, with five to seven parts
+ * separated by spaces: seconds (optional), minutes, hours, day of
+ * month, month, day of week, and year (optional). A five-part
+ * expression has no seconds and follows the Unix cron syntax. A + in
+ * the value is read as a space.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -194,8 +198,8 @@ public interface CronEndpointBuilderFactory {
public interface CronBuilders {
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through
- * the Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
@@ -204,7 +208,10 @@ public interface CronEndpointBuilderFactory {
* Syntax: <code>cron:name</code>
*
* Path parameter: name (required)
- * The name of the cron trigger
+ * The name of the trigger, which the cron implementation uses to
+ * identify its job. With camel-quartz it is the name of the Quartz
+ * trigger, which must be unique, and a value of the form group/name
+ * also sets the trigger group.
*
* @param path name
* @return the dsl builder
@@ -214,8 +221,8 @@ public interface CronEndpointBuilderFactory {
}
/**
* Cron (camel-cron)
- * A generic interface for triggering events at times specified through
- * the Unix cron syntax.
+ * Trigger events at the times of a cron expression, using a cron
+ * implementation such as camel-quartz or camel-spring.
*
* Category: scheduling
* Since: 3.1
@@ -224,7 +231,10 @@ public interface CronEndpointBuilderFactory {
* Syntax: <code>cron:name</code>
*
* Path parameter: name (required)
- * The name of the cron trigger
+ * The name of the trigger, which the cron implementation uses to
+ * identify its job. With camel-quartz it is the name of the Quartz
+ * trigger, which must be unique, and a value of the form group/name
+ * also sets the trigger group.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index c4e00aebad3c..be9cc796c3ea 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -140,7 +140,7 @@ or removes its row.
| camel-controlbus | controlbus | |
| camel-couchbase | couchbase | |
| camel-couchdb | couchdb | |
-| camel-cron | cron | |
+| camel-cron | cron | yes |
| camel-crypto | crypto | |
| camel-cxf-rest | cxfrs | yes |
| camel-cxf-soap | cxf | yes |