[
https://issues.apache.org/jira/browse/CAMEL-16630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-16630.
---------------------------------
Resolution: Information Provided
Okay lets leave it as-is for now.
Route templates / kamelets can now use local beans for any aggregation strategy
(or other beans) and then refer to them in the route via the {{beanId}} syntax.
To add support for local beans generally in normal camel routes is a bigger
task.
> 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
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.12.0
>
>
> 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)