|
6 | 6 | import java.lang.annotation.Target; |
7 | 7 |
|
8 | 8 | /** |
9 | | - * Marks a class or interface as configuration source for the Spring extension. There can be only <em>one</em> |
10 | | - * annotated type in each compiled module. |
| 9 | + * Marks a class or interface as configuration source for the Spring extension. There can be only |
| 10 | + * <em>one</em> annotated type in each compiled module. |
11 | 11 | * |
12 | 12 | * @author Raimund Klein |
13 | 13 | */ |
14 | 14 | @Target(ElementType.TYPE) |
15 | 15 | @Retention(RetentionPolicy.SOURCE) |
16 | 16 | public @interface SpringMapperConfig { |
17 | | - /** |
18 | | - * The package name for the generated Adapter between the MapStruct mappers and Spring's |
19 | | - * {@link org.springframework.core.convert.ConversionService}. If omitted or empty, the package name will be the |
20 | | - * same as the one for the annotated type. |
21 | | - * |
22 | | - * @return The package name for the generated Adapter. |
23 | | - */ |
24 | | - String conversionServiceAdapterPackage() default ""; |
| 17 | + /** |
| 18 | + * The package name for the generated Adapter between the MapStruct mappers and Spring's {@link |
| 19 | + * org.springframework.core.convert.ConversionService}. If omitted or empty, the package name will |
| 20 | + * be the same as the one for the annotated type. |
| 21 | + * |
| 22 | + * @return The package name for the generated Adapter. |
| 23 | + */ |
| 24 | + String conversionServiceAdapterPackage() default ""; |
25 | 25 |
|
26 | | - /** |
27 | | - * The class name for the generated Adapter between the MapStruct mappers and Spring's |
28 | | - * {@link org.springframework.core.convert.ConversionService}. |
29 | | - * |
30 | | - * @return The class name for the generated Adapter. |
31 | | - */ |
32 | | - String conversionServiceAdapterClassName() default "ConversionServiceAdapter"; |
| 26 | + /** |
| 27 | + * The class name for the generated Adapter between the MapStruct mappers and Spring's {@link |
| 28 | + * org.springframework.core.convert.ConversionService}. |
| 29 | + * |
| 30 | + * @return The class name for the generated Adapter. |
| 31 | + */ |
| 32 | + String conversionServiceAdapterClassName() default "ConversionServiceAdapter"; |
33 | 33 |
|
34 | | - /** |
35 | | - * The bean name for the Spring {@link org.springframework.core.convert.ConversionService} to use. |
36 | | - * |
37 | | - * @return The bean name for the Spring {@link org.springframework.core.convert.ConversionService}. |
38 | | - */ |
39 | | - String conversionServiceBeanName() default ""; |
| 34 | + /** |
| 35 | + * The bean name for the Spring {@link org.springframework.core.convert.ConversionService} to use. |
| 36 | + * |
| 37 | + * @return The bean name for the Spring {@link |
| 38 | + * org.springframework.core.convert.ConversionService}. |
| 39 | + */ |
| 40 | + String conversionServiceBeanName() default ""; |
40 | 41 |
|
41 | | - /** |
42 | | - * To set if the Lazy annotation will be added to the |
43 | | - * ConversionService's usage in the ConversionServiceAdapter. Defaults to true. |
44 | | - * |
45 | | - * @return true to add the Lazy annotation |
46 | | - */ |
47 | | - boolean lazyAnnotatedConversionServiceBean() default true; |
| 42 | + /** |
| 43 | + * To set if the Lazy annotation will be added to the ConversionService's usage in the |
| 44 | + * ConversionServiceAdapter. Defaults to true. |
| 45 | + * |
| 46 | + * @return true to add the Lazy annotation |
| 47 | + */ |
| 48 | + boolean lazyAnnotatedConversionServiceBean() default true; |
| 49 | + |
| 50 | + /** |
| 51 | + * Additional {@link ExternalConversion conversions} which should be made available through the |
| 52 | + * generated Adapter. |
| 53 | + * |
| 54 | + * @return Additional {@link ExternalConversion conversions} which should be made available |
| 55 | + * through the generated Adapter. |
| 56 | + */ |
| 57 | + ExternalConversion[] externalConversions() default {}; |
48 | 58 | } |
0 commit comments