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

camel-spring-boot - Auto configuration of complex types should be more tooling friendly

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      If you have complex types like javax.sql.DataSource and wants to allow to configure this via spring boot autoconfiguration in application.properties - then the generated spring boot classes with all the options will use getter/setter of types javax.sql.DataSource. That seems correct, but the spring-boot tooling itself (that generates additional json file) will skip those as it only support primitives and string types.

      So we may need to fool, and generate the getter/setter as String type as you use it for configuring it as a bean reference by id anyway, eg

      camel.component.jdbc.data-source = #myDataSource

      We can add in the javadoc that the type is javax.sql.DataSource.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: