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

camel-component-maven-plugin issue adding configuration bean to component subclass

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.6.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'm subclassing camel-jms component and need to add additional configuration bean with some uri parameters.
      Unfortunately, when generating configurers, the plugin creates only one getOrCreateConfiguration method (for parent JmsConfiguration bean) in component configurer and tries to reference parameters within my additional configuration bean using this method, creating invalid java code. I was able to circumvent this by adding parameters directly to my subclassed component, but this is ugly and adds unnecessary code to component (also cannot reuse the configuration bean in subclassed endpoint). Below is link to example component demonstrating the issue:
      https://github.com/vdobos-tr/camel-maven-plugin-issue

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: