You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/03/12 09:04:00 UTC

[jira] [Comment Edited] (CAMEL-17782) EndpointInject does not work on constructor parameters

    [ https://issues.apache.org/jira/browse/CAMEL-17782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505115#comment-17505115 ] 

Claus Ibsen edited comment on CAMEL-17782 at 3/12/22, 9:03 AM:
---------------------------------------------------------------

What runtime do you use? such as spring boot, quarkus or what?

Also mind that spring or quarkus etc don't easily allow Camel to take part of constructor dependency injection as this requires support for plugging in 3rd party annotation injectors.

However this is possible at a later stage with bean post processors where Camel can do dependency injection on fields/methods after the object is created.


was (Author: davsclaus):
What runtime do you use? such as spring boot, quarkus or what?

> EndpointInject does not work on constructor parameters
> ------------------------------------------------------
>
>                 Key: CAMEL-17782
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17782
>             Project: Camel
>          Issue Type: Wish
>            Reporter: Joseph Earl
>            Priority: Minor
>
> EndpointInject should work on constructor parameters so that developers can use constructor based injection for dependencies.
> Constructor injection encourages good, testable class design. Camel should support this.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)