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)