Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15381

Avoid use of reflection in CronComponent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.3, 3.5.0
    • None
    • None
    • Unknown

    Description

      CronComponent invokes setProperties on the CamelCronConfiguration object, which means reflection is used to set the properties:

      https://github.com/apache/camel/blob/master/components/camel-cron/src/main/java/org/apache/camel/component/cron/CronComponent.java#L48

      It'd be nice if we could avoid this, as otherwise we have to register CamelCronConfiguration for reflection in camel-quarkus.

      There's a test case over in the camel-quarkus project using Quartz as the cron scheduler to help prove any fixes:

      https://github.com/apache/camel-quarkus/blob/master/integration-tests/quartz/src/main/java/org/apache/camel/quarkus/component/quartz/it/QuartzRoutes.java#L29-L31
       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: