From a59e55aa9ba94210fd1ee57cca58ee546ccd5a25 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:26:43 +0000 Subject: [PATCH] Add component definition: cron --- component.json | 110 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..ee79e9d --- /dev/null +++ b/component.json @@ -0,0 +1,110 @@ +{ + "component": { + "kind": "component", + "name": "cron", + "title": "Cron", + "description": "A generic interface for triggering events at times specified through the Unix cron syntax.", + "deprecated": false, + "firstVersion": "3.1.0", + "label": "scheduling", + "javaType": "org.apache.camel.component.cron.CronComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-cron", + "version": "4.10.2", + "scheme": "cron", + "extendsScheme": "", + "syntax": "cron:name", + "async": false, + "api": false, + "consumerOnly": true, + "producerOnly": false, + "lenientProperties": false, + "browsable": false, + "remote": false + }, + "properties": { + "name": { + "index": 0, + "kind": "path", + "displayName": "Name", + "group": "consumer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "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, + "deprecationNote": "", + "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" + }, + "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 messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. 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." + }, + "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 default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored." + }, + "exchangePattern": { + "index": 4, + "kind": "parameter", + "displayName": "Exchange Pattern", + "group": "consumer (advanced)", + "label": "consumer,advanced", + "required": false, + "type": "object", + "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." + } + } +} \ No newline at end of file