camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexey-s <>
Subject Re: initialize camelContext properties
Date Tue, 10 Jul 2012 21:25:40 GMT
I propose to replace the current structure
getCamelContext (). getProprties (). get("my_property")
to the new method
getCamelContext (). getProperty("my_property")

The implementation of this method will produce an automatic substitution
values ​​using property placeholders.

String getProperty (String name) {
   String value = getProperties().get(name);
   if (ObjectHelper.isNotEmpty (proxyUrl))
      value = resolvePropertyPlaceholders (value);
   return value;

Almost universally used property placeholders. Only in this place, this
mechanism is not in use.

For example, "Using proxy settings outside of URI", have no universal
solution. For each installation of the system must collect a unique jar
(OSGi bundle).

See also
In this example, the xml has no universal solution. In Java DSL parameter
can be specified dynamically. In the xml this parameter is static.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message