View Javadoc
1   package org.csveed.annotations;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   import org.csveed.bean.conversion.Converter;
9   
10  /**
11  * Sets a custom converter for the field. The converter must be of type Converter.
12  * @author Robert Bor
13  */
14  @Target(ElementType.FIELD)
15  @Retention(RetentionPolicy.RUNTIME)
16  public @interface CsvConverter {
17  
18      /**
19      * The Converter to use for the field
20      * @return PropertyEditor
21      */
22      Class<? extends Converter> converter();
23  
24  }