Versions Compared

Key

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

...

Parameter Binding Annotations

Info
title[Bean] componentcamel-core

The annotations below is are all part of camel-core and its Bean component and thus does not require camel-spring or Spring. These annotations is to can be used with the Bean component .or when invoking beans in the DSL

Annotations The annotations can be used to bind in situations where traditional methods would result in ambiguous methods. So by adding annotations you can decorate your bean to help Camel invoke the correct method.You can also use the following annotations to bind parameters to different kinds of Expressionto define an Expression or to extract various headers, properties or payloads from a Message when invoking a bean method (see Bean Integration for more detail of how to invoke bean methods) together with being useful to help disambiguate which method to invoke.

The core annotations are as follows

Annotation

Meaning

@Body

To bind to an inbound message body

@Header

To bind to an inbound message header

@Headers

To bind to the Map of the inbound message headers

@OutHeaders

To bind to the Map of the outbound message headers

@Property

To bind to a named property on the exchange

@Properties

To bind to the property map on the exchange

...