This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new e459c5e Fix docs of contentCache for language component as its default true e459c5e is described below commit e459c5edae23ebc7e29138a12582df4a96a7505d Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jul 19 09:22:26 2019 +0200 Fix docs of contentCache for language component as its default true --- components/camel-language/src/main/docs/language-component.adoc | 2 +- .../main/java/org/apache/camel/component/language/LanguageEndpoint.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-language/src/main/docs/language-component.adoc b/components/camel-language/src/main/docs/language-component.adoc index 81161fa..dc3b08b 100644 --- a/components/camel-language/src/main/docs/language-component.adoc +++ b/components/camel-language/src/main/docs/language-component.adoc @@ -79,7 +79,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *binary* (producer) | Whether the script is binary content or text content. By default the script is read as text content (eg java.lang.String) | false | boolean | *cacheScript* (producer) | Whether to cache the compiled script and reuse Notice reusing the script can cause side effects from processing one Camel org.apache.camel.Exchange to the next org.apache.camel.Exchange. | false | boolean -| *contentCache* (producer) | Sets whether to use resource content cache or not | false | boolean +| *contentCache* (producer) | Sets whether to use resource content cache or not | true | boolean | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *script* (producer) | Sets the script to execute | | String | *transform* (producer) | Whether or not the result of the script should be used as message body. This options is default true. | true | boolean diff --git a/components/camel-language/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java b/components/camel-language/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java index b35830e..f82f0bd 100644 --- a/components/camel-language/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java +++ b/components/camel-language/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java @@ -69,6 +69,8 @@ public class LanguageEndpoint extends ResourceEndpoint { private boolean binary; @UriParam private boolean cacheScript; + @UriParam(defaultValue = "true", description = "Sets whether to use resource content cache or not") + private boolean contentCache; public LanguageEndpoint() { // enable cache by default