...
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 : |
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.
...