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

RouteTemplateBeanDefinition : add suport for #type and #class languages

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The way to create a template with local beans in the YAML DSl is like:

      - template: 
         id: "myTemplate"
         beans: 
           - name: "myProcessor"
             type: #class|#type:com.acme.Product”
             properties:  
               - foo: "bar"
      

      The bean is created by NamedBeanDefinition::newInstance

      With the recent support for defining beans with a scripting language, we have some additional options and would be nice to merge the two ways in something like:

      - template: 
         id: "myTemplate"
         beans: 
           - name: "myTypeBean"
             type: #class|#type:...”
             properties:  
               - foo: "bar"
           - name: "myScriptedBean"
             type: “groovy|joor|...”
             script: “”
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: