Search code examples
csvapache-camelbindy

Camel Bindy : configurable "pos" attribute in @DataField


I am configuring my POJO to unmarshal a CSV line, so I declared my attributes as indicated on the camel-bindy official page, and everything went well when unmarshalling.

@DataField(pos = 1) 
private String name; 
... 
getter and setter 

What I need to do is to make the pos attribute configurable, pointing a corresponding property in a properties.file to indicate the position of the name column in the CSV line.

Is it possible to implement such behaviour ?


Solution

  • No this is not possible. And there is no plans to support this in the future.

    You can take a look at some of the other CSV components such as beanio which allows to define binding information in external configuration files.