You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2022/03/15 02:53:58 UTC

[camel-karavan] branch main updated: Create CustomProcessor.java

This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 066724e  Create CustomProcessor.java
066724e is described below

commit 066724ec9b08d50e4030ab26a11086c92ac3bf50
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Mon Mar 14 22:42:54 2022 -0400

    Create CustomProcessor.java
---
 karavan-demo/postman/CustomProcessor.java | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/karavan-demo/postman/CustomProcessor.java b/karavan-demo/postman/CustomProcessor.java
new file mode 100644
index 0000000..17399cf
--- /dev/null
+++ b/karavan-demo/postman/CustomProcessor.java
@@ -0,0 +1,11 @@
+import org.apache.camel.BindToRegistry;
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+
+@BindToRegistry("myBean")
+public class CustomProcessor implements Processor {
+
+  public void process(Exchange exchange) throws Exception {
+      exchange.getIn().setBody("Hello world");
+  }
+}