Claus Ibsen created CAMEL-16630:
-----------------------------------
Summary: camel-core - Route model to allow inlined local beans for
XML and other DSLs
Key: CAMEL-16630
URL: https://issues.apache.org/jira/browse/CAMEL-16630
Project: Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Fix For: 3.x
With the introduction of local beans for route templates / kamelets. This
brings to the table of allowing to use that more generic in Camel DSL.
When using XML DSL and other markup DSLs then you have use-cases where you need
to define a bean for aggregation strategy, etc, and today you have to write
that as java bean and refer to it by bean id.
With local bean you can then inline this and create the bean code in the XML or
YAML dsl with script. Can be good for simple code (not very complex).
We can look at to add a special annotation in the model, that marks something
as a local bean compliant, so we can generate this in the XML XSD, YAML DSL
accordingly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)