[
https://issues.apache.org/activemq/browse/CAMEL-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50533#action_50533
]
Claus Ibsen commented on CAMEL-1005:
------------------------------------
Yes better with a new one, but then we gotta come up with a good name and
parameter, or just name.
The purpose is to quickly being able to mark a method as the one Camel should
invoke in a class that might have many methods and thus it could be hard to
pick the best one.
And to use annotations for meta data instead of specifying method=xxx in the
Camel route?
Is @Handler the best name? Isnt it associated with all the web frameworks?
> should we have an annotation - maybe @Handler or something which can mark a
> method as being the default method invoked by the Bean Binding if no other
> Camel annotations are used to bind parameters
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1005
> URL: https://issues.apache.org/activemq/browse/CAMEL-1005
> Project: Apache Camel
> Issue Type: Improvement
> Reporter: James Strachan
> Assignee: Claus Ibsen
> Priority: Trivial
> Fix For: 2.0.0
>
>
> e.g.
> {code}
> public class Cheese {
> public void foo(String bar) {...}
> @Handler
> public void bar(String cheese) {...}
> {code}
> Then if we did
> {code}
> from("seda:foo").bean(Cheese.class);
> {code}
> it'd be obvious.
> I guess its pretty low priority as follks could always do
> {code}
> public class Cheese {
> public void foo(String bar) {...}
> public void bar(@Body String cheese) {...}
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.