Versions Compared

Key

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

...

To work with camel-bindy, you must first define your model in a package (e.g. com.acme.model) and for each model class (e.g. Order, Client, Instrument, ...), associate the required annotations with Class or property name.

Annotations definition

Annotation name

...

Level

...

Parameter

...

CsvRecord

Class

Name : separator, type : string, value : ','

This annotation must be declared one time and is associated to the root class of the model. If the record represents orders, then this annotation is added to the Order class like this :
@CsvRecord( separator = "," )
public Class Order

Using the Java DSL

For example the following uses a named DataFormat of bindy which is configured with a number of Java package names to initialize the model objects.

...