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 2020/05/15 05:35:00 UTC

[jira] [Commented] (CAMEL-15059) camel-endpointdsl - Allow to @EndpointInject and use type-safe API

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

Claus Ibsen commented on CAMEL-15059:
-------------------------------------

Okay we can do something like

    private final EndpointProducerBuilder foo = mock("result").expectedCount(3);

And then use that in the EndpointRouteBuilder and FluentProducerTemplate

> camel-endpointdsl - Allow to @EndpointInject and use type-safe API
> ------------------------------------------------------------------
>
>                 Key: CAMEL-15059
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15059
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-endpointdsl
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.4.0
>
>
> Lets see if we can make Camel support dependency inject and endpoint via
> {code}
> @EndpointInject
> private Endpoint foo = kafka("cheese").brokers("somebrokers").xxxx;
> {code}
> In POJO classes. Currently the endpoint-dsl requires to call resolve(context) to build the endpoint. But maybe we can find a way via @EndpointInject to help trigger this, or something ala
> {code}
> @EndpointInject(builder = kafka("cheese").brokers("somebrokers"))
> private Endpoint foo;
> {code}



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