Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The value is either true or false which denotes a boolean value
  • The value is a numeric value such as 123 or 7
  • 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:

...