[
https://issues.apache.org/jira/browse/CAMEL-12463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474446#comment-16474446
]
ASF GitHub Bot commented on CAMEL-12463:
----------------------------------------
GitHub user lburgazzoli opened a pull request:
https://github.com/apache/camel/pull/2339
CAMEL-12463: camel-core: allow to add metadata/properties to a route
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lburgazzoli/apache-camel CAMEL-12463
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2339.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2339
----
commit 90e230ce400d4f95a2a8b9a6a59a8a09cb082106
Author: lburgazzoli <lburgazzoli@...>
Date: 2018-05-14T14:45:06Z
CAMEL-12463: camel-core: allow to add metadata/properties to a route
----
> camel-core: allow to add metadata/properties to a route
> -------------------------------------------------------
>
> Key: CAMEL-12463
> URL: https://issues.apache.org/jira/browse/CAMEL-12463
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 2.22.0
>
>
> Routes have
> [properties|https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/Route.java#L88]
> but it is not exposed to the DSL so it is not possible to add arbitrary
> meatadata to a route.
> Having such option is useful for some use cases:
> - cloud related service registration: information added to a route as
> metadata can be used to automatically expose a route as a service in a cloud
> environment (consul, etcd, k8s, spring-cloud)
> - property resolution could also take into account properties/metadata bound
> to a route, this is useful when the route is automatically generated so the
> same property but with different value can be used by different routes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)