[
https://issues.apache.org/jira/browse/CAMEL-16571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338390#comment-17338390
]
Claus Ibsen commented on CAMEL-16571:
-------------------------------------
Oh yeah there is the old camel proxy which allows to define interfaces as
contract such as
{code}
public interface Echo {
@Produce("direct:hello")
String hello(String name);
}
{code}
Then invoking hello("goofy") would then automatic send the message to
direct:hello endpoint.
So the annotations
> camel-core - @Consume annotation should not be marked for constructor
> injection
> -------------------------------------------------------------------------------
>
> Key: CAMEL-16571
> URL: https://issues.apache.org/jira/browse/CAMEL-16571
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 3.10.0
>
>
> This does not make sense, as its really only for methods, eg to Camel call a
> methods when a message is consumed.
> The @Produce is for field/constructor injection and not method.
> And same for @EndpointInject
--
This message was sent by Atlassian Jira
(v8.3.4#803005)