You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2020/07/08 12:51:00 UTC
[jira] [Commented] (CAMEL-15278) camel-bean: @Handler annotation
does not work for proxied beans
[ https://issues.apache.org/jira/browse/CAMEL-15278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17153576#comment-17153576 ]
Guillaume Nodet commented on CAMEL-15278:
-----------------------------------------
I've raised a PR with a fix, but I'm not 100% sure that quarkus actually sets the synthetic flag on the proxy class. It has to be verified.
> camel-bean: @Handler annotation does not work for proxied beans
> ---------------------------------------------------------------
>
> Key: CAMEL-15278
> URL: https://issues.apache.org/jira/browse/CAMEL-15278
> Project: Camel
> Issue Type: Improvement
> Components: camel-bean
> Reporter: Luca Burgazzoli
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 3.5.0
>
>
> On some containers such as ArC, beans retrieved from the container are proxy for the actual bean and as the proxy does not preserve the annotations on methods, methods annotated with @Handler are not automatically selected.
> We should probably walk the class hierarchy to see if there is a method annotated with @Handler
> https://github.com/apache/camel-quarkus/issues/1459
--
This message was sent by Atlassian Jira
(v8.3.4#803005)