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

RouteTemplateBeanDefinition : add suport for #type and #class languages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.10.0
    • camel-core
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: