1 package com.github.mygreen.supercsv.builder;
2
3 import java.lang.annotation.Annotation;
4 import java.util.Comparator;
5
6 import org.supercsv.cellprocessor.ift.CellProcessor;
7
8
9
10
11
12
13
14
15 public class Configuration {
16
17
18
19
20 private BeanFactory<Class<?>, Object> beanFactory = new DefaultBeanFactory();
21
22
23
24
25 private Comparator<Annotation> annoationComparator = new AnnotationComparator();
26
27
28
29
30 private ProcessorBuilderResolverResolver.html#ProcessorBuilderResolver">ProcessorBuilderResolver builderResolver = new ProcessorBuilderResolver();
31
32
33
34
35 private boolean skipValidationOnWrite = false;
36
37 public Configuration() {
38
39 }
40
41
42
43
44
45
46 public BeanFactory<Class<?>, Object> getBeanFactory() {
47 return beanFactory;
48 }
49
50
51
52
53
54
55 public void setBeanFactory(BeanFactory<Class<?>, Object> beanFactory) {
56 this.beanFactory = beanFactory;
57 }
58
59
60
61
62
63
64
65 public Comparator<Annotation> getAnnoationComparator() {
66 return annoationComparator;
67 }
68
69
70
71
72
73
74
75
76 public void setAnnoationComparator(Comparator<Annotation> annoationComparator) {
77 this.annoationComparator = annoationComparator;
78 }
79
80
81
82
83
84
85 public ProcessorBuilderResolver getBuilderResolver() {
86 return builderResolver;
87 }
88
89
90
91
92
93
94 public void setBuilderResolver(ProcessorBuilderResolver builderResolver) {
95 this.builderResolver = builderResolver;
96 }
97
98
99
100
101
102
103 public boolean isSkipValidationOnWrite() {
104 return skipValidationOnWrite;
105 }
106
107
108
109
110
111 public void setSkipValidationOnWrite(boolean skipValidationOnWrite) {
112 this.skipValidationOnWrite = skipValidationOnWrite;
113 }
114 }