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

camel-endpointdsl - Allow to @EndpointInject and use type-safe API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • camel-endpointdsl
    • None
    • Unknown

    Description

      Lets see if we can make Camel support dependency inject and endpoint via

      @EndpointInject
      private Endpoint foo = kafka("cheese").brokers("somebrokers").xxxx;
      
      

      In POJO classes. Currently the endpoint-dsl requires to call resolve(context) to build the endpoint. But maybe we can find a way via @EndpointInject to help trigger this, or something ala

      @EndpointInject(builder = kafka("cheese").brokers("somebrokers"))
      private Endpoint foo;
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: