Annotation Interface Variable


@Retention(RUNTIME) @Documented @Target(PARAMETER) public @interface Variable
Marks a method parameter as a named variable when Camel performs bean binding.

Variables are an exchange-scoped store (separate from headers and exchange properties) introduced in Camel 4.4 to provide a cleaner namespace for application data that should not pollute message headers. The value() attribute names the variable to inject; the value is converted to the declared parameter type via the TypeConverter infrastructure.

Since:
4.4
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of variable
  • Element Details

    • value

      String value
      Name of variable