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

provide a bean definition to the auto configuration by property feature

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: camel-main
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      As discussed with Claus Ibsen, 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

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

                Dates

                • Created:
                  Updated:
                  Resolved: