This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.3.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.3.x by this push: new 558fcb7 CAMEL-15216 : Omit the warning for example tag from camel 3.3.x (#3942) 558fcb7 is described below commit 558fcb78b85a51f31332f1447767d315514f748f Author: Aemie Jariwala <44139348+aem...@users.noreply.github.com> AuthorDate: Tue Jun 23 18:19:56 2020 +0530 CAMEL-15216 : Omit the warning for example tag from camel 3.3.x (#3942) --- .gitignore | 1 + .../src/main/docs/modules/eips/pages/content-enricher.adoc | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5d69a55..0698f2f 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ components/camel-cxf/activemq-data *.swp .flattened-pom.xml .java-version +node_modules/ \ No newline at end of file diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/content-enricher.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/content-enricher.adoc index fc69de9..2221ae9 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/pages/content-enricher.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/content-enricher.adoc @@ -45,7 +45,9 @@ transform the message [source,java] ---- -include::{examplesdir}/core/camel-core/src/test/java/org/apache/camel/processor/TransformViaDSLTest.java[tags=example] +from("direct:start") + .setBody(body().append(" World!")) + .to("mock:result"); ---- In this example we add our own xref:latest@manual:ROOT:processor.adoc[Processor] using @@ -53,7 +55,14 @@ explicit Java [source,java] ---- -include::{examplesdir}/core/camel-core/src/test/java/org/apache/camel/processor/TransformTest.java[tags=example] +from("direct:start") + .process(new Processor() { + public void process(Exchange exchange) { + Message in = exchange.getIn(); + in.setBody(in.getBody(String.class) + " World!"); + } + }) + .to("mock:result"); ---- we can use xref:latest@manual:ROOT:bean-integration.adoc[Bean Integration] to use any Java