Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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
- relates to
-
CAMEL-16608 Kamelet local bean - Using script should allow to define return type of created bean
- Resolved
- links to