THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- The value is either
true
orfalse
which denotes a boolean value - The value is a numeric value such as
123
or7
- The value is a String enclosed with either single or double quotes
- The value is null which denotes a
null
value - It can be evaluated using the Simple language, which means you can use eg body, header.foo and other Simple tokens. Notice the tokens must be enclosed with ${ }.
Any other value is consider to be a type declaration instead, see next section about pin pointing types for overloaded methods.
...
Code Block |
---|
.bean(OrderService.class, "doSomething(${body}, true)") |
The syntax of the parameters is using the Simple expression language so we can use ${ } placeholders to make this more expressive:
Code Block |
---|
.bean(OrderService.class, "doSomething(${body}, true)")
|
...
have to use ${ } placeholders in the
...
body to refer to the message body.
If you want to pass in a null
value, then you can explicit define this in the method option as shown below:
...