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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.3
    • 3.6.0
    • tooling
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: