1 package net.rakugakibox.spring.boot.orika;
2
3 import lombok.Data;
4 import org.springframework.boot.context.properties.ConfigurationProperties;
5
6 /**
7 * The configuration properties for Orika.
8 */
9 @Data
10 @ConfigurationProperties("orika")
11 public class OrikaProperties {
12
13 /**
14 * Whether to enable auto-configuration.
15 */
16 private boolean enabled = true;
17
18 /**
19 * Whether to use built-in converters (MapperFactoryBuilder#useBuiltinConverters(boolean)).
20 * Follows Orika's behavior by default.
21 */
22 private Boolean useBuiltinConverters;
23
24 /**
25 * Whether to use auto-mapping (MapperFactoryBuilder#useAutoMapping(boolean)).
26 * Follows Orika's behavior by default.
27 */
28 private Boolean useAutoMapping;
29
30 /**
31 * Whether to map null values (MapperFactoryBuilder#mapNulls(boolean)).
32 * Follows Orika's behavior by default.
33 */
34 private Boolean mapNulls;
35
36 /**
37 * Whether to dump the current state of the mapping infrastructure objects
38 * upon occurrence of an exception while mapping (MapperFactoryBuilder#dumpStateOnException(boolean)).
39 * Follows Orika's behavior by default.
40 */
41 private Boolean dumpStateOnException;
42
43 /**
44 * Whether the class-map should be considered 'abstract' (MapperFactoryBuilder#favorExtension(boolean)).
45 * Follows Orika's behavior by default.
46 */
47 private Boolean favorExtension;
48
49 /**
50 * Whether full field context should be captured (MapperFactoryBuilder#captureFieldContext(boolean)).
51 * Follows Orika's behavior by default.
52 */
53 private Boolean captureFieldContext;
54
55 }