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

provide a bean definition to the auto configuration by property feature

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • camel-main
    • None
    • Unknown

    Description

      As discussed with davsclaus, would be very nice to have a mechanism in property auto configurations to define beans in their own namespace i.e. in order to make something like this possible:

      camel.bean.mycf=#class:my.package.MyCf
      camel.bean.mycf.brokerUrl=localhost:61616
      camel.bean.mycf.username=admin
      camel.bean.mycf.password=admin
      
      camel.component.sjms2.connectionFactory=#mycf
      

      by instantiating, initializing and adding to the registry the mycf bean;
      that would nicely enhance the current autoconfiguration mechanism and actually play quite nicely with the registry auto-discovery of single implementation factories (i.e. making the camel.component.sjms2.connectionFactory=#mycf unnecessary)

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              valdar Andrea Tarocchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: