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

Claus Ibsen commented on CAMEL-15727:
-------------------------------------

The camel-mock is hardcoded in
https://github.com/apache/camel/blob/4ea9e6c357371682b855d2d79655b41120331b7a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiCamelFactory.java#L148

And I tried making it generic with a Endpoint type instead, however that does 
not really work, if you want to inject

{code}
@Inject 
@Uri("mock:foo")
MockEndpoint foo;
{code}

Then it does not work as the type is MockEndpoint and the factory is creating 
Endpoint. 

> Simplify camel-cdi dependencies
> -------------------------------
>
>                 Key: CAMEL-15727
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15727
>             Project: Camel
>          Issue Type: Task
>          Components: camel-cdi
>            Reporter: Romain Manni-Bucau
>            Priority: Minor
>             Fix For: 3.x
>
>
> seems mock and main dependencies should be dropped in favor of 
> camel-core-languages (and camel-core-engine but it is transitive from 
> language one). Other ones can be added in a camel-cdi-main module or so but 
> are undesired for main deployments IMHO.



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

Reply via email to