[
https://issues.apache.org/jira/browse/CAMEL-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620298#comment-14620298
]
Daniel Seidewitz commented on CAMEL-5553:
-----------------------------------------
Ich bin am 10. Juli noch mal im Büro. Bitte wendet euch bei allen Themen an die
neuen Modul-Owner:
LMSBATCH: Justin Heesemann
SBC: Gerhard Knarr
Validata: Christian Binder
OSRR: Benjamin Konrad & Stefan Rinderle
> camel-cdi - support injection of Endpoint and @Produce @Consume annotations
> ---------------------------------------------------------------------------
>
> Key: CAMEL-5553
> URL: https://issues.apache.org/jira/browse/CAMEL-5553
> Project: Camel
> Issue Type: Improvement
> Components: camel-cdi
> Reporter: james strachan
> Assignee: Claus Ibsen
> Fix For: 2.16.0
>
>
> we don't yet support the various camel annotation injections in CDI yet; we
> should support the same capabilities as we have in spring/guice
> http://camel.apache.org/bean-integration.html
> http://camel.apache.org/bean-injection.html
> I guess a more CDI way to do endpoint injection might be to have an
> annotation for endpointURI specification. Then you'd either use
> {code}
> public class MyBean {
> // named reference injection
> @Inject @Named("foo") Endpoint bar;
> // URI based injection
> @Inject @Uri("mock:whatnot") MockEndpoint foo;
> ...
> }
> {code}
> Rather than using the DI-agnostic @EndpointInject annotation - though I guess
> we could support it too (though having Inject twice looks a bit icky and not
> as DRY)...
> {code}
> public class MyBean {
> // using current annotation...
> @Inject @EndpointInject(uri = "mock:whatnot") MockEndpoint bar;
> ...
> }
> {code}
> For handling @Consume it would be nice to avoid having to use @Inject too as
> that seems a bit odd (since there's no injection going on).
> For @Produce I guess we could support a straight @Inject of a
> ProcessorTemplate; allowing use of @Uri annotation to specify the default URI
> to send to
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)