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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0-M2
    • None
    • 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

            davsclaus Claus Ibsen
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: