Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1005

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      e.g.

      public class Cheese {
        public void foo(String bar) {...}
      
        @Handler
        public void bar(String cheese) {...}
      

      Then if we did

      from("seda:foo").bean(Cheese.class);
      

      it'd be obvious.

      I guess its pretty low priority as follks could always do

      public class Cheese {
        public void foo(String bar) {...}
      
        public void bar(@Body String cheese) {...}
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jstrachan james strachan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: