You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2020/08/06 15:37:00 UTC

[jira] [Created] (CAMEL-15381) Avoid use of reflection in CronComponent

James Netherton created CAMEL-15381:
---------------------------------------

             Summary: Avoid use of reflection in CronComponent
                 Key: CAMEL-15381
                 URL: https://issues.apache.org/jira/browse/CAMEL-15381
             Project: Camel
          Issue Type: Improvement
            Reporter: James Netherton
             Fix For: 3.5.0


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
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)